Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of decimal places
Message
From
02/10/2010 12:33:18
 
 
To
02/10/2010 11:24:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01483618
Message ID:
01483628
Views:
82
This message has been marked as a message which has helped to the initial question of the thread.
This formula returned the correct answer for the values I tested:
?Len(Chrtran(Transform(xx),Set("Point"),''))-Len(transform(Int(xx)))
>I'm sure there is an obvious answer but it's the weekend ...
>
>Given a numeric variable which may or may not have digits after the decimal point, what would be the quickest way to know the number of digits that occur after decimal point, zero or more?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform