class ActiveSupport::NumberHelper::RoundingHelper

def absolute_precision(number)

def absolute_precision(number)
  if options[:significant] && options[:precision] > 0
    options[:precision] - digit_count(convert_to_decimal(number))
  else
    options[:precision]
  end
end