Divide error dividing 100 by . (50 zeros)+ 5
albert_redditt at yahoo.com
Wed Feb 17 22:11:23 CET 2010
I was testing your gmp on the "Try GMP" website and it failed to output an answer.
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.
"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