Class: NilClass (Ruby 2.7.5)
Description: Class : NilClass - Ruby 2.7.5

### Home Classes Methods

### In Files

- bigdecimal/lib/bigdecimal/util.rb

### Parent

Object

### Methods

- #to_d

### Class/Module Index

Quicksearch

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

No matching classes.

# NilClass

### Public Instance Methods

to_d → bigdecimal click to toggle source

Returns nil represented as a `BigDecimal`.

    require 'bigdecimal'
    require 'bigdecimal/util'

    nil.to_d   # => 0.0

                   # File bigdecimal/lib/bigdecimal/util.rb, line 145
    def to_d
      BigDecimal(0)
    end