Ruby uses Fixnum class for representing small numbers and Bignum class for big numbers. 1# Before Ruby 2.4 2 31.class #=> Fixnum 4(2 ** 62).class #=> BignumCopy In general routine work we don't have to worry about whether the number we are dealing with is Bignum or Fixnum. It's just an implementation detail. Interestingly, Ruby also has Integer class which is superclass for Fixnum and Bignum. Star
![Ruby 2.4 unifies Fixnum and Bignum into Integer](https://cdn-ak-scissors.b.st-hatena.com/image/square/df7dcf3e382d2d4b018ba79fc6642260e3fa7070/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fdpc4i4bdx%2Fimage%2Fupload%2Fbigbinary_blogs%2Fdefault_blog_image.png)