Arbitrary precision decimal numbers

Tejas notrealemail at gmail.com
Thu Aug 11 03:11:31 UTC 2022


On Wednesday, 10 August 2022 at 14:11:04 UTC, Ruby The Roobster 
wrote:
> On Saturday, 6 August 2022 at 13:20:19 UTC, Sergey wrote:
>> On Thursday, 4 August 2022 at 13:01:30 UTC, Ruby The Roobster 
>> wrote:
>>> Is there any implementation in phobos of something similar to 
>>> BigInt but for non-integers as well?  If there isn't is there 
>>> a dub package that does this, and if so, which one?
>>
>> Also you could find usefull such projects:
>>
>> http://mir-algorithm.libmir.org/mir_bignum_decimal.html
>>
>> https://github.com/huntlabs/hunt-extra/blob/2d286f939193fc0cd55c799906f7657cec502dc8/source/hunt/math/BigDecimal.d
>
> It doesn't provide for arithmetic operations though, according 
> to the docs.

Maybe you'll have better luck with this?

https://code.dlang.org/packages/gmp-d


More information about the Digitalmars-d-learn mailing list