Money type

bauss jj_1337 at live.dk
Thu Jan 2 00:54:13 UTC 2020


On Wednesday, 1 January 2020 at 15:41:32 UTC, Vitaly Livshic 
wrote:
> Good day.
>
> I came from Java world, where 'double' type inadequate for 
> money calculation. BigDecimal serves for it. This is ugly type, 
> but gives precise results.
>
> Which type I must use for money in D?

You can use this package:

https://code.dlang.org/packages/money


More information about the Digitalmars-d mailing list