Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why 1/2000000=0 is true ? BUG ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00824749
Message ID:
00824853
Vues:
29
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform