Sha256: 92c7343ad9a18553f947d1bae4c0ede9f0a1b31bca96935a8cf7f7d21338b253
Contents?: true
Size: 740 Bytes
Versions: 2
Compression:
Stored size: 740 Bytes
Contents
# -*- coding: utf-8 -*- =begin rdoc Please see README =end class Numeric # Return self * 10^15 def peta self*1000000000000000 end # Return self * 10^12 def tera self*1000000000000 end # Return self * 10^9 def giga self*1000000000 end # Return self * 10^6 def mega self*1000000 end # Return self * 10^3 def kilo self*1000 end # Return self * 10^2 def hecto self*100 end # Return self * 10 def deka self*10 end # Return self / 10 def deci self.fdiv 10 end # Return self / 10^2 def centi self.fdiv 100 end # Return self / 10^3 def milli self.fdiv 1000 end # Return self / 10^6 def micro self.fdiv 1000000 end # Return self / 10^9 def nano self.fdiv 1000000000 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_metric_names-1.1.2 | lib/sixarm_ruby_metric_names.rb |
sixarm_ruby_metric_names-1.1.0 | lib/sixarm_ruby_metric_names.rb |