division with huge numbers

Satoru Takabayashi satoru-t@is.aist-nara.ac.jp
Wed, 21 Mar 2001 16:56:21 +0900


Hi,

I got an unexpected result with division with huge numbers.

  % hugs
  Prelude> :version
  -- Hugs Version February 2001 
  Prelude> 21099067259124990080755354669061414400 / 708801874985091845381344307009569161216
  0.0

Is it a bug or just a limitation? I think it should be something like:

  % guile  # a scheme interpreter
  guile> (/ 21099067259124990080755354669061414400 708801874985091845381344307009569161216)
  0.0297672283380582

Thanks,
--
Satoru Takabayashi
http://namazu.org/~satoru/