Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
August 29, 2013 Any library with higt-preposition doudles? | ||||
---|---|---|---|---|
| ||||
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 Re: Any library with higt-preposition doudles? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ilya-stromberg | 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 Re: Any library with higt-preposition doudles? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ilya-stromberg | 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 Re: Any library with higt-preposition doudles? | ||||
---|---|---|---|---|
| ||||
Posted in reply to qznc | 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 Re: Any library with higt-preposition doudles? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Craig Dillabaugh | 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.
|
Copyright © 1999-2021 by the D Language Foundation