Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a function to strip off zero-filled decimals
Message
From
18/08/2000 13:34:35
Tom Gahagan
Alliance Computer Solutions
Thomaston, Georgia, United States
 
 
To
18/08/2000 12:44:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00406732
Message ID:
00406748
Views:
33
Bill....


>>Example: I have a variable that contains the number 8.50000. I want to pass that through a VFP function and have it return 8.5.

Check out transform() in the help section.

>>While I'm at it, is there a function that will tell you the number of decimals in a numeric?

WAG.....try changing the number to a string, extract the portion after the decimal and then count the 0's with occurs()
Tom Gahagan
Alliance
Computer Solutions

"Music, like sex, is much too important to be left to professionals."
Robert Shaw
Previous
Reply
Map
View

Click here to load this message in the networking platform