Flowdock
method

calculate_rounded_number

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: NumberToRoundedConverter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

calculate_rounded_number(multiplier) private

No documentation

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

Hide source
# File activesupport/lib/active_support/number_helper/number_to_rounded_converter.rb, line 50
        def calculate_rounded_number(multiplier)
          (number / BigDecimal.new(multiplier.to_f.to_s)).round * multiplier
        end
Register or log in to add new notes.