Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding system Algorithm
Message
From
08/03/2000 10:54:23
 
 
To
08/03/2000 09:38:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00343240
Message ID:
00343276
Views:
15
>Has anyone done a prg/ algorithm to round decimal currency to the nearest 5 ?
>
>Eg if the value is $45.43 and 45.44 then rounded to 45.45
> 45.41 and 45.42 round to 45.40
> 45.46 and 45.47 down to 45.45
> 45.48 and 45.49 upto 45.50
>

Try ROUND(nAmount*2,1)/2
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