Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculate fraction from decimal
Message
From
09/03/2010 16:58:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01453419
Message ID:
01453614
Views:
61
>It would if you had
>
>#DEFINE true .T.
>
>>
>>Absolute 1st class! Change true to .T. as Fox did not like this, but again: very good.
>>Thanks for sharing with us.
>>
Sergey, of course, but that was not listed in the code.

An other thing: I am less enthousiastic after some tests:


0.33 results in 33/100
0.333333333333333 results in 0/3
0.3333333333333333 results in 1/3
0.6666 results in 1/3

I take it this has something to do with how VFP rounds

Regards,

Koen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform