class ActiveSupport::NumberHelper::NumberToHumanConverter

def calculate_exponent(units)

def calculate_exponent(units)
  exponent = number != 0 ? Math.log10(number.abs).floor : 0
  unit_exponents(units).find { |e| exponent >= e } || 0
end