Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding problem
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00681174
Message ID:
00681180
Views:
19
Jon,

It is rounding correctly. 1.3749 is less than 1.3750, so it is rounded down.

>I found that VFP is rounding in a manner that doesn't make sense to me. Take the following example:
>
>
ROUND(1.375,2)
>will round correctly to 1.38.
>
>
ROUND(1.3749,2)
>will round to 1.37. Shouldn't the 4 be rounded up to 5 and then susbsequently 7 go up to 8? That's how I remember doing it in high school! :) It looks like the rounding is only looking 1 decimal place to the right instead of the entire expression.
>
>Any ideas??
>
>Laterness,
>Jon
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform