Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Round() giving different results
Message
From
12/12/2000 15:45:52
Mike Mattos
Nationwide Computers
Mississauga, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00452446
Message ID:
00452502
Views:
16
round() is a bit weird, I always try to set BOTH fields to the same accuracy, do all the multiplies first, then the divides, then round! And move the negatives out too, if possible!

But heck, FoxPlus Unix would round 0.5 to 1, and -.5 to 0, so the sum of .5 and -.5 was 1, not 0 . after that , anything is infinitely better than that!
Previous
Reply
Map
View

Click here to load this message in the networking platform