Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug in currency data type? Someone Explain this one.
Message
 
À
20/07/2000 10:37:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00394894
Message ID:
00394902
Vues:
10
>Hi,
>
>I was getting a bad amount in a tax calculation and tracked it to the following:
>
>*******************************************
>t = 7.25
>
>p = 65.31
>? ROUND(p * (t/100), 2)
>
>CORRECTLY returns 4.73
>
>
>* now - with p as currency
>p = $65.31
>? ROUND(p * (t/100), 2)
>
>INCORRECTLY returns 4.74!!!!
>******************************************
>
>what the heck is this all about?
>
>thanks,
Ken,

This is a known problem with the ROUND() function. See MS KB article Q157954.
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