Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rounding problem?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00348122
Message ID:
00348513
Vues:
30
>
>Try:
>
>round( a * b * c, 2 )=round( 0.3500000000 * 943 * .100, 2 )
>
>You'll get false. There's some sort of problem connected with the number of decimal places.

You correct (naturally!)
maybe the fact that one has leading spaces and the other does not hat something to do with it
try ?val(trans( 0.3500000000 * 943 * .100))==val(trans(a*b*c))
it returns true
Peter Cortiel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform