class Numeric
Public Instance Methods
Source
# File lib/oddb2xml/builder.rb, line 8 def round_by(increment) (self / increment).round * increment end
round a given number to the nearest step
# File lib/oddb2xml/builder.rb, line 8 def round_by(increment) (self / increment).round * increment end
round a given number to the nearest step