RE: MI string to value using val

2000-08-18 Thread Chioles, John
l function and the last two digits are dropped. hth -John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 18, 2000 7:09 AM To: [EMAIL PROTECTED] Subject: MI string to value using val I have a problem converting a string to a value The probl

Re: MI string to value using val

2000-08-18 Thread Andrew_Dressel
>I have a problem converting a string to a value >The problem is that "val" returns a value like 55.8412 >The last to digits are lost?? > >dim pos as string >pos=55.841234 >dim valpos as float >valpos= val(pos) >note valpos Experimentation suggests that the digits are lost twice. First when conv

MI string to value using val

2000-08-18 Thread ph
I have a problem converting a string to a value The problem is that "val" returns a value like 55.8412 The last to digits are lost?? Include "MENU.DEF" Include "MAPBASIC.DEF" Include "ICONS.DEF" dim pos as string pos=55.841234 dim valpos as fl