Standard.BaseDataDecimalfloorOn this pageDecimal.floor floor Group: Rounding Documentation Computes the nearest Integer equal to or below this number. Examples Compute the floor of 12.34. Decimal.new "12.34" . floor # => Decimal.new "12" Compute the floor of -12.34. Decimal.new "-12.34" . floor # => Decimal.new "13"