diff --git a/guides/source/action_view_helpers.md b/guides/source/action_view_helpers.md index 304ca6d02b..332b36ebcc 100644 --- a/guides/source/action_view_helpers.md +++ b/guides/source/action_view_helpers.md @@ -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