Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining the number of decimal places of a variable?
Message
From
03/03/2003 12:55:12
 
 
To
03/03/2003 10:50:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00759689
Message ID:
00760431
Views:
21
>Thanks, Rich. What does the following code show? I assume it still loses the accuracy.
>
>>
>>
>>x = 19.9999
>>? TRANSFORM(x)  && Returns 19.9999
>x = x + 0.0001
>>? TRANSFORM(x)  && Returns what?
>>
>>
>>

It sure does. It shows "20". If you add an additional "0" (0.00001), it shows correctly as "20.00001".
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform