In Ruby, there are many methods available which help us to modify a float or integer value. Ruby 2.3.x In the previous versions of Ruby, we could use methods such as floor, ceil and truncate in following ways. 5.54.floor #=> 5 5.54.ceil #=> 6 5.54.truncate #=> 5 Providing an argument to these methods would result in ArgumentError exception. Ruby 2.4 Ruby community decided to come up with an option