class Float

Public Instance Methods

ceil2(exp = 0) click to toggle source
# File lib/cvss_rating/float.rb, line 2
def ceil2(exp = 0)
  multiplier = 10**exp
  (self * multiplier).ceil.to_f / multiplier.to_f
end