In Ruby, there are many methods available which help us to modify a float orinteger value. Ruby 2.3.xIn the previous versions of Ruby, we could use methods such as floor, ceiland truncate in following ways. 5.54.floor #=> 55.54.ceil #=> 65.54.truncate #=> 5Providing an argument to these methods would result in ArgumentErrorexception. Ruby 2.4Ruby community decided to come up with an option toadd p
