Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/finrb/decimal.rb,
lib/finrb/amortization.rb

Instance Method Summary collapse

Instance Method Details

#amortizeObject

See Also:

  • Amortization#new


196
197
198
# File 'lib/finrb/amortization.rb', line 196

def amortize(...)
  Finrb::Amortization.new(self, ...)
end

#to_decObject



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