method

calculate_exponent

calculate_exponent(units)
private

No documentation available.

# File activesupport/lib/active_support/number_helper/number_to_human_converter.rb, line 50
        def calculate_exponent(units)
          exponent = number != 0 ? Math.log10(number.abs).floor : 0
          unit_exponents(units).find { |e| exponent >= e } || 0
        end