class Numeric

Public Instance Methods

round_by(increment) click to toggle source

round a given number to the nearest step

# File lib/oddb2xml/builder.rb, line 8
def round_by(increment)
  (self / increment).round * increment
end