Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mathematical rounding
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00982326
Message ID:
00982615
Views:
23
anyone claiming 12.4 correct has lost their marbles dude.

no mater what comes after the 4 in 12.34 it's still going to be rounded to a 3.

the 4 part of 12.34 defines the 1st decimal number as beng closer to 3 than 4 (decimal number probably isn't the right term but you know what I mean the 1st number after the decimal point)

this is simple,
1.49 is very nearly 1.5 but it's not, it's <1.5 and therefore rounds to 1, try looking at everything after that first decimal as a whole not one by on from the right, that's madness.

same applys here. keep your collegues away from any important programming for all of our sakes!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform