lib/lite/ruby/numeric.rb in lite-ruby-1.0.15 vs lib/lite/ruby/numeric.rb in lite-ruby-1.0.16

- old
+ new

@@ -212,9 +212,15 @@ def root(num) self**(1.0 / num) end + def round_down(num = 0) + int, dec = to_f.to_s.split('.') + + "#{int}.#{dec[0...num]}".to_f + end + def subtract(num) self - num end def to_currency(options = {})