class Float

Public Instance Methods

nearest_half() click to toggle source
# File lib/heartwood/support/float.rb, line 2
def nearest_half
  (self * 2.0).round / 2.0
end