This blog is part of our Ruby 2.4 series.
Prior to Ruby 2.4
Prior to Ruby 2.4,
Float and BigDecimal responded to methods
whereas Fixnum and Bignum did not.
To make behavior for all the numeric values to be consistent, infinite? and finite? were added to Fixnum and Bignum even though they would always return nil.
This gives us ability to call these methods irrespective of whether they are simple numbers or floating numbers.