Class: Integer (Ruby 2.7.2)
Description: Class : Integer - Ruby 2.7.2

### Home Classes Methods

### In Files

- bigdecimal/lib/bigdecimal/util.rb

### Parent

Numeric

### Methods

- #to_d

### Class/Module Index

Quicksearch

- BigDecimal
- BigMath
- Float
- Integer
- Jacobian
- Kernel
- LUSolve
- Newton
- NilClass
- Rational
- String

No matching classes.

# Integer

### Public Instance Methods

to_d → bigdecimal click to toggle source

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 23
    def to_d
      BigDecimal(self)
    end