:: Re: [DNG] Politics of IT in the U.S…
Kezdőlap
Delete this message
Reply to this message
Szerző: Edward Bartolo
Dátum:  
Címzett: Enrico Weigelt, metux IT consult
CC: dng
Tárgy: Re: [DNG] Politics of IT in the U.S. government
When I used Delphi it had a predefined number type specifically for
financial calculations. This was the Currency type.

Currency = int64

http://stackoverflow.com/questions/182475/how-to-avoid-rounding-problems-when-comparing-currency-values-in-delphi

On 04/08/2016, Enrico Weigelt, metux IT consult <enrico.weigelt@???> wrote:
> On 03.08.2016 23:58, Hendrik Boom wrote:
>
>> Floating-point just isn't accurate enough. Multiple-precision scaled
>> fixed-point would work, even if it's binary.
>
> The limited precision isn't the actual problem, but the strictly
> defined rounding rules. To be financially accurate, you'll have to
> comply the financial calculation rules (which OTOH might not be
> actually physically correct) - these are just different numbe spaces.
>
>
> --mtx
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>



--
If you can't explain it simply, you don't understand it well enough.

Albert Einstein