Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of decimal places
Message
From
03/10/2010 03:43:03
 
 
To
03/10/2010 03:22:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01483618
Message ID:
01483693
Views:
53
>>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?
>
>quickest
>
>
>=MAX(LEN(CAST(m.Number % 1 AS M))-2,0)
>
>* significant decimals only
>
>=MAX(LEN(RTRIM(CAST(m.Number % 1 AS M),"0"))-2,0)
>
>
Grazie mille Fabio.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform