rumbu at rumbu.ro
Sat Jan 4 12:53:19 UTC 2020
On Wednesday, 1 January 2020 at 15:41:32 UTC, Vitaly Livshic
> 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?
Here you have a full IEE754-2008 compliant implementation of
decimal data types (32, 64 and 128 bit).
Same as the Intel one proposed here by someone else, but written
completely in D, no dependencies, no bindings.
More information about the Digitalmars-d