Numeric
Returns the value of int as a BigDecimal.
int
require 'bigdecimal' require 'bigdecimal/util' 42.to_d # => 0.42e2
See also BigDecimal::new.
# File bigdecimal/lib/bigdecimal/util.rb, line 23 def to_d BigDecimal(self) end
This page was generated for Ruby 2.6.4
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.44.2.