Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Re: Weird
Miscellaneous
Thread ID:
00952239
Message ID:
00952251
Views:
7
You're right

I wonder what's significant about this value band, except that 64 is, of course that magic binary, hex number. But what about 81?

>Hi guys,
>
>I got a good one for you. I've tried this in fox 7, 8 and also 9 beta. Simple way to reproduce the problem:
>
>?ROUND(64.225000000000000000000000000000000000,2)
>?ROUND(63.225000000000000000000000000000000000,2)
>
>Why do I get 64,22 for the first one and 63.23 for the second one ? The round value doesn't seem to be right between 64 and 81. I tried this :
>
>?ROUND(64.225000000000000000000000000000000000,2)
>to
>?ROUND(81.225000000000000000000000000000000000,2)
>
>and the round isn't right !!
>
>Somebody and notice this problem ?
>
>Note : ?ROUND(ROUND(64.225000000000000000000000000000000000,10),2)is working well, strange isn't it :)
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform