Support for the Ruby 2.4 series has ended. See here for reference.
Numeric
Returns the value of int
as a BigDecimal
.
require 'bigdecimal' require 'bigdecimal/util' 42.to_d # => 0.42e2
See also BigDecimal::new
.
# File bigdecimal/lib/bigdecimal/util.rb, line 22 def to_d BigDecimal(self) end