Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to fix rounding bug
Message
 
 
À
02/10/2007 14:08:49
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:
01258041
Vues:
24
You can create your own function RoundEx and do global replace for 'ROUND(' with 'RoundEx('.
* Sample code, no error handling or parameters checking
FUNCTION RoundEx(tnNumber, tnRoundTo)
RETURN ROUND(ROUND(tnnumber, tnRoundTo+2), tnRoundTo)
>I have used round( ...,2) in 150 places in my code and in reports.
>
>Should I re-write all my code and change all reports to use double rounding ?
>
>
>>
>>? ROUND(ROUND(kogus*kogpak*kaubasumma,4),2)
>>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform