14 15 16 17 18 19 20
# File 'lib/finance/decimal.rb', line 14 def to_d if self.instance_of? DecNum self else DecNum self.to_s end end