method

to_d

Importance_1
v2_1_10 - Show latest stable - 0 notes - Class: Integer
to_d() public

Convert int to a BigDecimal and return it.

require 'bigdecimal'
require 'bigdecimal/util'

42.to_d
# => #<BigDecimal:1008ef070,'0.42E2',9(36)>
Show source
Register or log in to add new notes.