Flowdock
method

convert_float_to_big_decimal

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: Decimal
convert_float_to_big_decimal(value) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/type/decimal.rb, line 44
        def convert_float_to_big_decimal(value)
          if precision
            BigDecimal(apply_scale(value), float_precision)
          else
            value.to_d
          end
        end
Register or log in to add new notes.