Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric value
Message
From
09/05/2000 16:38:48
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00367820
Message ID:
00367834
Views:
17
>I have the following situation. In some of my computation I will arrive at a result of say 9.975. However I do not want to round up but want to place only the 9.97 in my table. However if I have define the table as two decimals point is automatically round it up to 9.98.

You can force truncation using the FLOOR() function. To force truncation at 2 decimal places, use:

FLOOR(nNumericExpn*100)/100
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform