Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate fraction from decimal
Message
De
09/03/2010 16:58:01
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01453419
Message ID:
01453614
Vues:
62
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform