Fix `number_to_human_size`'s result [ci skip]

This commit is contained in:
Ryuta Kamizono 2021-03-09 08:45:35 +09:00
parent 982ed415be
commit dc96825d44
1 changed files with 2 additions and 2 deletions

View File

@ -347,8 +347,8 @@ number_to_human(1234567) # => 1.23 Million
Formats the bytes in size into a more understandable representation; useful for reporting file sizes to users.
```ruby
number_to_human_size(1234) # => 1.2 KB
number_to_human_size(1234567) # => 1.2 MB
number_to_human_size(1234) # => 1.21 KB
number_to_human_size(1234567) # => 1.18 MB
```
#### number_to_percentage