Sha256: 1331b6f42a5155d7f7db073d1220129a30fe23bc0602923bb988d97a107a35bc
Contents?: true
Size: 252 Bytes
Versions: 1
Compression:
Stored size: 252 Bytes
Contents
class Float def to_act(num = 0) (self*100).round(num) end def ratio(*num) EasyDivide::Ratio.calculate(self, num) end def percent(*num) EasyDivide::Percent.calculate(self, num) end def with_sign self.to_s + "%" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
easy_divide-1.0.1 | lib/easy_divide/core_extentions/float.rb |