Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to format a currency fields ?
Message
De
06/12/1999 14:36:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00294286
Message ID:
00299311
Vues:
24
>Dragan,
>
>Just to summarize the issue we are both talking about, when rounding decimal numbers is necessary you should carry all the decimals through the entire calculation and only round the final result.

Sure Jim, that's what both theory and practice say.

Though, with accountants it sometimes goes slightly different - they'll try to check your calculations with pocket calculators, and do the rounding as they go... so I had to do the rounding as they did (the customer being always right). But then, there's a rule of thumb for such a calculation: round it once, store the rounded result, and use it as it is, never rounding it again. I had to learn this the hard way - and as they say, "if you want to do something wrong, do it right".

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform