Class: Integer
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: 
          self,
           ::Numeric | |
| Instance Chain: 
          self,
           ::Numeric | |
| Inherits: | Numeric 
 | 
| Defined in: | lib/bigdecimal/util.rb | 
Instance Method Summary
- 
    
      #to_d  ⇒ bigdecimal 
    
    Returns the value of intas a::BigDecimal.
Instance Method Details
    #to_d  ⇒ bigdecimal   
Returns the value of int as a ::BigDecimal.
require 'bigdecimal'
require 'bigdecimal/util'
42.to_d   # => 0.42e2See also Kernel.BigDecimal.
# File 'lib/bigdecimal/util.rb', line 23
def to_d BigDecimal(self) end