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:
00348508
Vues:
31
>I don't know what you guys aretalking about. I get:
>round( a * b * c, 2 )==round( 0.3500000000 * 943 * .1, 2 ) returns TRUE

>
Peter

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.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform