BigFloat?

Geroge Little via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 10 11:54:54 PDT 2017


Is there support for BigFloat in phobos or any other package? I 
was playing around with D and wrote some code that calculates a 
Fibonacci sequence (iterative) with overflow detection that 
upgrades ulong to BigInt. I also wanted to use Binet's formula 
which requires sqrt(5) but it only works up to n=96 or so due to 
floating point precision loss. The code is here:

https://gist.github.com/ggl/38458b57b1eb3945ce447c8bf1d4e458


More information about the Digitalmars-d-learn mailing list