string.to_d â bigdecimal
Instance Public methods
Convert string
to a BigDecimal
and return it.
require 'bigdecimal' require 'bigdecimal/util' "0.5".to_d # => #<BigDecimal:1dc69e0,'0.5E0',9(18)>
Convert string
to a BigDecimal
and return it.
require 'bigdecimal' require 'bigdecimal/util' "0.5".to_d # => #<BigDecimal:1dc69e0,'0.5E0',9(18)>
Please login to continue.