Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/finrb/decimal.rb,
lib/finrb/amortization.rb
Instance Method Summary collapse
Instance Method Details
#amortize ⇒ Object
196 197 198 |
# File 'lib/finrb/amortization.rb', line 196 def amortize(...) Finrb::Amortization.new(self, ...) end |
#to_dec ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/finrb/decimal.rb', line 15 def to_dec if instance_of?(Flt::DecNum) self else Flt::DecNum(to_s) end end |