Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to fix rounding bug
Message
De
05/10/2007 13:23:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01258001
Message ID:
01259006
Vues:
32
>
STR(m.nNumber, LEN(STR(m.nNumber)), LEN(STR(m.nNumber)))
is equivalent to
STR(m.nNumber, 10, 10)
>
>Thus, your (or Microsoft's) solution is obviously wrong. Your function RoundEx(123456.123456, 5) will give you an incorrect result 123456.12300.

Ben,

thank you.
Excellent solution.
Do you have an idea why this MS KB article describes totally wrong solution ?
This KB article is written in 2003.
Totally wrong solution has been present for 4 years!
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform