Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why 1/2000000=0 is true ? BUG ?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00824749
Message ID:
00824853
Views:
28
>Hi George,
>
>change SET DECIMALS TO value not change result ( and this is correct because SET DECIMALS TO change only the format of variable, not the value).
>
>
>SET DECIMALS TO 10
>? 1/2000000 = 0
>
>
Fabio,

Simply declare the variable recieving the result and this won't happen. By that, I mean use the As clause to declare it as a float, double, or currency variable. This shouldn't be a big deal since most other languages require it.
George

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

Click here to load this message in the networking platform