Information générale
Titre:
Accurate Numeric Calculation
I need to convert from one currency to another and I would like the results
to
be accurate no matter which way I calculate. I have a problem in converting
from one currency to another and back to its original value and there is
some
discrepency (Eg. $10 x ex-rate = $18.90, then
$18.90 x ex-rate = $9.99[should be $10
originally] )
where ex-rate is 99.9999 format.
I tried to get the whole value by multi it with 100 or 10000, etc...
Pls help and thanks in advance
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement