Numeric
Returns the value of int as a BigDecimal.
int
BigDecimal
require 'bigdecimal' require 'bigdecimal/util' 42.to_d # => 0.42e2
See also BigDecimal::new.
BigDecimal::new
# File bigdecimal/lib/bigdecimal/util.rb, line 22 def to_d BigDecimal(self) end
This page was generated for Ruby 2.5.0
Ruby-doc.org is provided by James Britt and Neurogami. Maximum R+D.
Generated with Ruby-doc Rdoc Generator 0.42.0.