Author: user user

Why does JRuby not recognize BigNums while Ruby does?

If I type this big integer: puts 9997836544.class.to_s and compile with ruby 1.86, it reports expectedly: BigNum while JRuby (1.1.4 in Netbeans) reports surprisingly: Fixnum I thought Java had a BigInteger class to correspond to the BigNum class in Ruby. If so, I would have expected JRuby and ruby to produce the same output.