Class: BigDecimal
Instance Method Summary collapse
Methods inherited from Numeric
Instance Method Details
#__org_div__ ⇒ Object
31 |
# File 'lib/ironruby.rb', line 31 alias __org_div__ div |
#div(other) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/ironruby.rb', line 32 def div(other) case other when BigDecimal then __org_div__(other) when Integer then __org_div__(BigDecimal.new(other.to_s)) else to_f.div(other.to_f) end end |