Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining the number of decimal places of a variable?
Message
From
01/03/2003 13:08:22
 
 
To
28/02/2003 18:19:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00759689
Message ID:
00759972
Views:
21
>>>Rich,
>>>
>>>Are you using VFP6? Transform works for VFP7...see Re: LEN() for numeric expresions Thread #716929 Message #716960 and surrounding discussion.
>>
>>TRANSFORM() doesn't work with trailing 0's. Not in VFP8, anyways.
>>
>
>Are you saying it changed between version 7 and 8? Or are you saying Larry Miller is wrong? < gd&r >
>
>BTW, I don't have 7, or 8 (yet).

It's not trailing 0's, it's values that end up as whole numbers with insignificant 0's. Doesn't work in VFP7, either.
n=1.23450
? TRANSFORM(n)
1.23450
n=20.000
? TRANSFORM(n)
20
So I guess that makes Larry wrong. < s >
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform