Ruby floor library function

The floor() function in Ruby is used to return the next lowest integer value (i.e. last largest integer not greaterthan the inputed value) by rounding up value if necessary.