Float error or a Format error ??
glassy
glassymeow at yahoo.com
Wed Oct 4 10:16:19 CEST 2006
hi
x=1.2
mpf_pow_ui(result,x,22)
mp_sprintf(stringVar,"%.30Ff",result)
the displayed result will be:
55.206143891243641727800000000000
while the true result must be :
55.2061438912436417593344
using gmp-v4.2
please explain
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20061004/f96263c3/attachment.html
More information about the gmp-discuss
mailing list