int.to_d â bigdecimal
Instance Public methods
Convert int
to a BigDecimal and
return it.
1 2 3 4 5 | require 'bigdecimal' require 'bigdecimal/util' 42 .to_d # => #<BigDecimal:1008ef070,'0.42E2',9(36)> |
Convert int
to a BigDecimal and
return it.
1 2 3 4 5 | require 'bigdecimal' require 'bigdecimal/util' 42 .to_d # => #<BigDecimal:1008ef070,'0.42E2',9(36)> |
Designed by : w10schools
service@w10schools.com
Please login to continue.