class ActiveSupport::NumberHelper::NumberToCurrencyConverter
def convert
def convert format = options[:format] number_f = valid_float? if number_f if number_f.negative? number_f = number_f.abs format = options[:negative_format] if (number_f * 10**options[:precision]) >= 0.5 end number_s = NumberToRoundedConverter.convert(number_f, options) else number_s = number.to_s.strip format = options[:negative_format] if number_s.sub!(/^-/, "") end format.gsub("%n", number_s).gsub("%u", options[:unit]) end