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
>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
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