bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GMP bug - mpf_get_str for very small numbers


From: Rezac David
Subject: GMP bug - mpf_get_str for very small numbers
Date: Mon, 7 May 2001 08:36:00 +0200 (CEST)

Hello!

I've tried to run the 'machar()' function which gets some detailed info
about the FP aritmetics
[ ]

and found out this:
when you have a very small number [at the edge of the possibilities]
and make it even smaller and then try to print it [or whatever, using the
'mpf_get_str()' function] the get_str throws some asserts and kills the
program :(
Well, I'd say that  it would be great that when the exp. underflow is
detected, some flag 'infty' would be set. [or something like that]

Hmm, I forgot the code at home, .... It looked like this:

a = "1e-K"  [for example K=2^-30 or something like that]
a = a*a;
cout <<a;

[well, I've created a simple object layer above gmp, as I work on
my diploma thesis and use the gmp intensively so using that mpf_ would
kill me ;)  But the bug ain't in my object....]

Yeah, almost forgot: I'm using gmp 3.1.1 on linux Red Hat 7.0 and have
Celeron CPU.

I hope this would help you to fix the things [if you think them relavant].
If not, please tell me what else do you want to know.

Thank you.


With regards,
David Rezac


P.S.: if you have mood for this, you can check my homepage :)

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                    E-mail:          address@hidden
                                     address@hidden
                                     address@hidden
                    WWW home page:   http://go.to/rezac
                    ICQ:             68387449
-------------------------------------------------------------------------------
Any spam sent to my email will be rewarded by complaint to your ISP abuse
  team and abuse teams of servers that relayed that message. It works.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]