Skip to content

Commit

Permalink
Use zero-padding for number_to_rounded_converter
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Aug 23, 2014
1 parent 2602a49 commit 9bf2e5e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -33,7 +33,7 @@ def convert
a, b = s.split('.', 2)
a + '.' + b[0, precision]
else
"%01.#{precision}f" % rounded_number
"%00.#{precision}f" % rounded_number
end

delimited_number = NumberToDelimitedConverter.convert(formatted_string, options)
Expand Down

0 comments on commit 9bf2e5e

Please sign in to comment.