class Float

Public Instance Methods

round_50sen() click to toggle source
# File lib/round_50sen/core_ext/float.rb, line 2
def round_50sen
  return (self - 0.5).ceil if self >= 0

  (self + 0.5).floor
end