Permalink
Browse files

Fixing precision issue overlooked by recent master merge

  • Loading branch information...
Cameron Dutro
Cameron Dutro committed Nov 15, 2012
1 parent ae1156d commit b705e5324a5a2ced55913d32669e84f39d7de18a
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/twitter_cldr/formatters/numbers/number_formatter.rb
@@ -15,8 +15,8 @@ def initialize(options = {})
@symbols = DEFAULT_SYMBOLS.merge(tokenizer.symbols)
end
- def format(number, options = {})
- opts = self.default_format_options_for(number).merge(options)
+ def format(number, opts = {})
+ opts[:precision] ||= precision_from(number)
prefix, suffix, integer_format, fraction_format = *partition_tokens(get_tokens(number, opts))
number = transform_number(number)

0 comments on commit b705e53

Please sign in to comment.