If I type this large integer:
puts 9997836544.class.to_s
and compile with ruby 1.86, it reports:
BigNum
while JRuby (1.1.4 in Netbeans) unexpectedly reports:
Fixnum
I thought Java had a BigInteger class corresponding to the BigNum class in Ruby. If so, I expected JRuby and ruby to produce the same result.
Willem obst
source
share