Handling big FP numbers

Simen Kjærås simen.kjaras at gmail.com
Tue Feb 12 10:15:12 UTC 2019

On Tuesday, 12 February 2019 at 09:20:27 UTC, Aurélien Plazzotta 
> Thank you both for your lesson Adam D. Ruppe and H.S. Teoh.
> Is there a wish or someone showing one's intention to implement 
> into the language the hypothetical built-in 128 bit types via 
> the "cent" and "ucent" reserved keywords?

cent and ucent would be integers with values between 
-170141183460469231731687303715884105728 to 
170141183460469231731687303715884105727 and 0 to 
340282366920938463463374607431768211455, respectively. Their 
implementation would not mean that any kind of 128-bit float 
would also be available. For bigger floating-point numbers 
there's at least two packages on dub:


These are arbitrary-precision, and probably quite a bit slower 
than any built-in floats.

More information about the Digitalmars-d-learn mailing list