class Numeric
Public Instance Methods
half_floor()
click to toggle source
# File lib/rails_com/core/numeric.rb, line 7 def half_floor (self * 2).floor / 2.0 end
half_round()
click to toggle source
# File lib/rails_com/core/numeric.rb, line 3 def half_round (self * 2).round / 2.0 end