Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decimal Places
Message
From
20/12/1999 10:47:29
 
 
To
20/12/1999 09:45:47
Amit Abhangrao
Charmi Software Exports
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00306105
Message ID:
00306153
Views:
27
> I want to findout the decimal places of a variable. How can i find that. Eg. if variable is 130.9898 then it should return me 4.

In VFP 6, you can use the new capabilites of the TRANSFORM() function to help:
lcString = transform(lnNumber)
lnDecimals = len(lcString) - at('.', lcString)
Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform