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