Skip to content

Instantly share code, notes, and snippets.

@maraigue
Created October 21, 2011 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maraigue/1303351 to your computer and use it in GitHub Desktop.
Save maraigue/1303351 to your computer and use it in GitHub Desktop.
Fixnum? Bignum?
#!/usr/bin/ruby
# run with Ruby1.8.6, Ruby1.9.2
x = 1234567890
y = 1000000000
x.class #=> Bignum
y.class #=> Fixnum
(x - y).class #=> Fixnum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment