class NilClass
Public Instance Methods
Source
# File vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.1.9/lib/bigdecimal/util.rb, line 182 def to_d BigDecimal(0) end
Returns nil represented as a BigDecimal
.
require 'bigdecimal' require 'bigdecimal/util' nil.to_d # => 0.0