class ActiveSupport::NumberHelper::RoundingHelper

def digit_count(number)

def digit_count(number)
  return 1 if number.zero?
  (Math.log10(number.abs) + 1).floor
end