## digitalmars.D - Any library with higt-preposition doudles?

- "ilya-stromberg" <ilya-stromberg-2009 yandex.ru> Aug 29 2013
- "Craig Dillabaugh" <cdillaba cg.scs.carleton.ca> Aug 29 2013
- "qznc" <qznc web.de> Aug 29 2013
- "ilya-stromberg" <ilya-stromberg-2009 yandex.ru> Aug 29 2013
- "ilya-stromberg" <ilya-stromberg-2009 yandex.ru> Aug 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.

Aug 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

Aug 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

Aug 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.

Aug 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.

Aug 29 2013