Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding problem?
Message
 
To
21/03/2000 08:47:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00348122
Message ID:
00348300
Views:
19
>Yeah, I found that out too. My solution is to ROUND my result to 5, then ROUND to whatever I really want, like 2. That seems to work, but sounds buggy to me!

Janet,

It has something to do with the literals you're using. As was mentioned elsewheres, modifying the literals by removing the unnecessary zeroes, produces the correct (and expected) result. If, for example, you were to assign the result of the math to a variable and round the variable, it works correct. Further, I wouldn't think that, in actual usage, you'd use this anyway. If you needed 33.01, then that's what you'd use.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform