Flowdock
method

to_d

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: String
to_d() public

Convert string to a BigDecimal and return it.

require 'bigdecimal'
require 'bigdecimal/util'

"0.5".to_d
# => #<BigDecimal:1dc69e0,'0.5E0',9(18)>
Show source
Register or log in to add new notes.