Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to fix rounding bug
Message
 
 
À
02/10/2007 13:35:27
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:
01258004
Vues:
24
? ROUND(ROUND(kogus*kogpak*kaubasumma,4),2)
>CREATE CURSOR test( KOGUS N(12,4), KAUBASUMMA N(15,5), kogpak n(9,4) )
>INSERT INTO test VALUES ( 1, 3.1411, 50 )
>MESSAGEBOX( ROUND(kogus*kogpak*kaubasumma,2) )

>
>Observed: 157.05
>
>Expected: 157.06
>
>How to fix without changing code and cursor structure ?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform