Method: BigDecimal#to_d
- Defined in:
- lib/bigdecimal/util.rb
#to_d ⇒ Object
call-seq:
a.to_d -> bigdecimal
Returns self.
require 'bigdecimal/util'
d = BigDecimal("3.14")
d.to_d # => 0.314e1
110 111 112 |
# File 'lib/bigdecimal/util.rb', line 110 def to_d self end |