method

valid_bigdecimal

valid_bigdecimal()
private

No documentation available.

# File activesupport/lib/active_support/number_helper/number_converter.rb, line 178
        def valid_bigdecimal
          case number
          when Float, Rational
            number.to_d(0)
          when String
            BigDecimal(number, exception: false)
          else
            number.to_d rescue nil
          end
        end