Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incorrect rounging of 6 digits pecision
Message
From
22/04/2002 15:31:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00647785
Message ID:
00647804
Views:
17
>The product is 25.425. Why do you expect 25.43? It should be 25.42.

Because, when you round 24.425 to two decimals, you get 24.43 (since the first digit dropped is a 5, VFP rounds up). Try it with the ROUND() function.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform