Flowdock
method

to_d

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

Returns the value of int as a BigDecimal.

require 'bigdecimal'
require 'bigdecimal/util'

42.to_d   # => 0.42e2

See also BigDecimal::new.

Show source
Register or log in to add new notes.