Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wrong Result in simple calculation
Message
From
26/03/2002 23:15:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Wrong Result in simple calculation
Miscellaneous
Thread ID:
00637659
Message ID:
00637659
Views:
46
Hi,

I have two calculations using the rounding function :

1 round(315*12.5010,2)
2 round(315*12.5010*1.000000,2)

the first one have the result - 3937.82 which is correct but the result of the second one is 3937.81, if I reduce one of the zero of the 1.000000 in the formula 2, it's result would be correct too, I would like to ask if anyone know why this happen ?

I have got another example :

1 round(5.00*101.3090,2) = 506.55 but
2 round(5.00*101.3090*1.000000,2) = 506.54

Thanks in advance
Next
Reply
Map
View

Click here to load this message in the networking platform