Ruby - Number Large Numbers

Introduction

Ruby seamlessly converts between numbers that the computer can handle natively.

It does this with different classes.

Fixnum class represents smaller numbers.

Bignum class represents "big" numbers.

The boundary is the number 1,073,741,823:

Demo

puts 1073741823.class #Fixnum 
puts 1073741824.class #Bignum

Result