class Float
Jeremy Espino MD MS 28-JAN-2016
Public Instance Methods
round_down(n=0)
click to toggle source
function to round down a float to an integer value
# File lib/auto12epl.rb, line 8 def round_down n=0 n < 1 ? self.to_i.to_f : (self - 0.5 / 10**n).round(n) end