Divide error dividing 100 by . (50 zeros)+ 5

Albert Redditt albert_redditt at yahoo.com
Wed Feb 17 22:11:23 CET 2010


Hello there!

I was testing your gmp on the "Try GMP" website and it failed to output an answer.

I input:

100 / .000000000000000000000000000000000000005

it failed to give a response. I took out the decimal and left the leading zeros and it returned "20" ????????

My calculator "BigCalcV11" takes a little while (seconds to minutes) to output an answer but the answer is correct.
http://www.mediafire.com/?sharekey=a375220a75eafa7caaca48175a79d1c3b68a8b652153f881913616043b05bc7e
"BigCalc" is written in FreeBasic for windows 32 and comes with source code . (its slow as hell compared to GMP)
You guys might want to look thru the divider() , divider_subtractor() , divider_multiplier(), divider_equalizer(), lessgreater() routines.

It seems you guys are having problems with floats, if you take out the decimal then every number is an integer, you just have to compute where to put the deciaml back in to the result.



      


More information about the gmp-bugs mailing list