Thread overview
Any library with higt-preposition doudles?
Aug 29, 2013
ilya-stromberg
Aug 29, 2013
Craig Dillabaugh
Aug 29, 2013
ilya-stromberg
Aug 29, 2013
qznc
Aug 29, 2013
ilya-stromberg
August 29, 2013
Hi.

Do you know any library with high-precision doubles? I need at least 20-30 decimal digits without rounding, it will be better to have 50-100 decimal digits.

Thanks.
August 29, 2013
On Thursday, 29 August 2013 at 09:33:12 UTC, ilya-stromberg wrote:
> Hi.
>
> Do you know any library with high-precision doubles? I need at least 20-30 decimal digits without rounding, it will be better to have 50-100 decimal digits.
>
> Thanks.

This isn't a D library, but GMP might fit your needs:

http://gmplib.org/

It is in C, so you should be able to interface with D code.

Craig
August 29, 2013
On Thursday, 29 August 2013 at 09:33:12 UTC, ilya-stromberg wrote:
> Hi.
>
> Do you know any library with high-precision doubles? I need at least 20-30 decimal digits without rounding, it will be better to have 50-100 decimal digits.
>
> Thanks.

Phobos has std.bigint, but the documentation recommends GMP for "very large numbers".

http://dlang.org/phobos/std_bigint.html
August 29, 2013
On Thursday, 29 August 2013 at 13:53:42 UTC, qznc wrote:
> Phobos has std.bigint, but the documentation recommends GMP for "very large numbers".
>
> http://dlang.org/phobos/std_bigint.html

No, I need double, not integer, so I can't use std.bigint.
I must provide at least 20-30 decimal digits without rounding after a decimal point.
August 29, 2013
On Thursday, 29 August 2013 at 13:37:47 UTC, Craig Dillabaugh wrote:
> This isn't a D library, but GMP might fit your needs:
>
> http://gmplib.org/
>
> It is in C, so you should be able to interface with D code.
>
> Craig

Thanks.

Anybody knows a D interface for the GMP library? I can't find it at the Deimos.