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

Torbjorn Granlund tg at gmplib.org
Wed Feb 17 22:29:41 CET 2010


Albert Redditt <albert_redditt at yahoo.com> writes:

  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.

You missed "Enter an integer expression in the field below."

  I took out the decimal and left the
  leading zeros and it returned "20" ????????

Does you slow-but-correct calculator disagree about the result of 100/5?
;-)

  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.
  
We guys'll try to keep that in mind.

-- 
Torbjörn


More information about the gmp-bugs mailing list