www.digitalmars.com         C & C++   DMDScript  

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

reply "ilya-stromberg" <ilya-stromberg-2009 yandex.ru> writes:
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
next sibling parent reply "Craig Dillabaugh" <cdillaba cg.scs.carleton.ca> writes:
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
parent "ilya-stromberg" <ilya-stromberg-2009 yandex.ru> writes:
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
prev sibling parent reply "qznc" <qznc web.de> writes:
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
parent "ilya-stromberg" <ilya-stromberg-2009 yandex.ru> writes:
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