Sha256: eaa5316f06d1ec05f1c8f96e174bc9196aac56c35fa37ac10c297db2d122edc7
Contents?: true
Size: 109 Bytes
Versions: 20
Compression:
Stored size: 109 Bytes
Contents
class Numeric def percent_of(n) return Float::INFINITY if n == 0 (to_f / n.to_f) * 100.0 end end
Version data entries
20 entries across 20 versions & 2 rubygems