Arbitrary precision decimal numbers

Ruby The Roobster rubytheroobster at yandex.com
Fri Aug 5 14:25:39 UTC 2022


On Friday, 5 August 2022 at 14:11:10 UTC, frame wrote:
> On Friday, 5 August 2022 at 14:03:36 UTC, Ruby The Roobster 
> wrote:
>
>> Also, what about division and exponentiation.  You can't just 
>> forward them to BigInt and get a good result, BigInt will just 
>> round to an integer for these two.
>
> There are divMod() and powmod() for BigInt but I have no idea 
> how precise they really are.

I'm currently working on an arbitrarily precise division 
algortihm based off of the done-by-hand standard algorithm, but I 
need to get it to work for complex numbers, [which it's just 
not](https://forum.dlang.org/post/czidpbdywsohstyviitk@forum.dlang.org).


More information about the Digitalmars-d-learn mailing list