Proposal for a standard Decimal type in alpha
rumbu
rumbu at rumbu.ro
Wed Mar 14 14:57:12 UTC 2018
On Wednesday, 14 March 2018 at 14:41:21 UTC, Jordi Gutiérrez
Hermoso wrote:
> On Wednesday, 14 March 2018 at 14:29:48 UTC, Seb wrote:
>> https://forum.dlang.org/thread/mutegviphsjwqzqfouhs@forum.dlang.org?page=1
>
> While certainly impressive and feature-complete, rumbu's isn't
> a bigdecimal library. I need arbitrary precision (in this case,
> exactly 20 decimal digits), not only IEEE 754 decimals.
>
> Jack, I think that's what you're doing instead?
For 20 decimal digits, you can use decimal128 (having a 34
decimal digits precision) and set the context precision to 20.
http://rumbu13.github.io/decimal/doc/decimal.html#.DecimalControl.precision
More information about the Digitalmars-d-announce
mailing list