This project is archived and is in readonly mode.
core_ext/numeric/bytes don't respect IEEE 1541 standard
Reported by Jean Boussier | May 31st, 2010 @ 06:08 PM
Currently 1.kilobyte return 1024 but according to most standart organisations it should return 1000 or be named kibibyte
http://en.wikipedia.org/wiki/IEEE_1541-2002
http://en.wikipedia.org/wiki/Binary_prefix
Comments and changes to this ticket
-
Jason Gignac May 31st, 2010 @ 09:45 PM
-1 I would argue that while this may be an official standard, the de facto standard is 1024? Most programmers I'd ask, if you said 'how many are in a kilobyte' this is what they'd respond?
-
Justin Baker May 31st, 2010 @ 09:49 PM
+1 The man's right, 1024 isn't a multiple of 10, so kilo makes no sense.
-
Jean Boussier June 1st, 2010 @ 01:51 PM
@Jason When you buy a hard drive Giga mean 10^9.
On MacOS X in SATA description Giga mean 10^9
Now just type "df" and "df -h" in your shell. It use Gi for Gibia.
On my Debian system G mean 10^9 too.Actually the only system i know which currently consider Giga as 2^30 is Microsoft Windows...
It's not about official or de facto standard, it's about clarity.
But i agree this bug is realy minor, and i don't really care about it's resolution. -
Santiago Pastorino February 2nd, 2011 @ 04:51 PM
- State changed from new to open
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino February 2nd, 2011 @ 04:51 PM
- State changed from open to stale
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>