method

to_d

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: BigDecimal
to_d() public

Returns self.

require 'bigdecimal/util'

d = BigDecimal("3.14")
d.to_d                       # => 0.314e1
Show source
Register or log in to add new notes.