mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use zero-padding for number_to_rounded_converter
This commit is contained in:
parent
2602a49a86
commit
9bf2e5ec30
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ module ActiveSupport
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue