Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding problem?
Message
From
20/03/2000 16:47:11
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Rounding problem?
Miscellaneous
Thread ID:
00348122
Message ID:
00348122
Views:
51
When the following numbers are multiplied then rounded to two decimals the result is 33.00 instead of the expected 33.01.

.35000000 * 943.0 *.100 = 33.005000000000
ROUND(.35000000 * 943.0 *.100 ,2) = 33.00

ROUND(33.005000000000,2) = 33.01

The numbers are straight from the command window - not from a table. Is this normal rounding behavior that I don't know about?

Thanks for any info!
Next
Reply
Map
View

Click here to load this message in the networking platform