See Github #7819, #7829, #7830, #7835 and friends.
Summary: because this is number_to_human_size not
number_to_computer_scientist_size. Human here refers to your users/customers.
If they happen to be computer scientists you should roll your own (and maybe
make it a gem and open source it).
—
S
> (Why it names si?)
http://en.wikipedia.org/wiki/International_System_of_Units
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-core+unsubscr
Why rails doesn't follow standart?
Example:
number_to_human_size(1000, prefix: :si) -> '10 MB'
>
This is ok.
helper.number_to_human_size(1, prefix: :si) -> '10 KB'
>
This must be '10 *k*B'
> helper.number_to_human_size(1000) -> '9.54 MB'
>
WTF? '9.54 *MiB*' is right, binary pre