method

parse_float

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveModel::Validations::NumericalityValidator
parse_float(raw_value, precision, scale) 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/validations/numericality.rb, line 86
      def parse_float(raw_value, precision, scale)
        round(raw_value, scale).to_d(precision)
      end
Register or log in to add new notes.