[Qt-interest] Best way to manipulate currency values?
Andre Somers
andre at familiesomers.nl
Mon Oct 25 15:11:01 CEST 2010
Op Ma, 25 oktober, 2010 2:30 pm, schreef Atlant Schmidt:
> Marcelo:
>
> Currency is almost always manipulated using scaled
> arithmetic. That is, if your currency has (for example)
> Euros and Eurocents, you scale by 100 and, effectively,
> calculate everything in Eurocents.
>
>
AFAIK, the standard scaling used for this is not a factor 100, but a
factor 10000, but the idea is the same. See also "fixed point arithmatic".
Qt does not have direct support for it.
André
More information about the Qt-interest-old
mailing list