Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The old issue ( bug ) on ROUND() function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00977091
Message ID:
00977421
Vues:
35
>Run this:
>
>CLEAR
>FOR K=3 TO 15
>    x=ROUND(ROUND(147.325,m.k),2)
>	? m.k	,	m.x
>NEXT
>
Fabio,

This is a result of the limitations of VFP's mathematical precision, which is documented. As soon as you hit 15 digits (including the decimal point) you lose accuracy. This is not only known, but documented as well.
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