Sha256: 8b350c72f71bccb64b7753ff4fe642571e8174d20ca6ecee8382fa54d2c72575
Contents?: true
Size: 746 Bytes
Versions: 23
Compression:
Stored size: 746 Bytes
Contents
class Numeric HUNDRED = 10 ** 2 THOUSAND = 10 ** 3 MILLION = 10 ** 6 BILLION = 10 ** 9 TRILLION = 10 ** 12 QUADRILLION = 10 ** 15 unless Numeric.method_defined? :hundred def hundred self * HUNDRED end end unless Numeric.method_defined? :thousand def thousand self * THOUSAND end end unless Numeric.method_defined? :million def million self * MILLION end end unless Numeric.method_defined? :billion def billion self * BILLION end end unless Numeric.method_defined? :trillion def trillion self * TRILLION end end unless Numeric.method_defined? :quadrillion def quadrillion self * QUADRILLION end end end
Version data entries
23 entries across 20 versions & 6 rubygems