Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

core_ext/numeric/bytes don't respect IEEE 1541 standard

#4739

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

Reported by Jean Boussier · May 31st, 2010 @ 06:08 PM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Jason Gignac
    Jason Gignac

    -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?

    May 31st, 2010 @ 09:45 PM

  2. Justin Baker
    Justin Baker

    +1 The man's right, 1024 isn't a multiple of 10, so kilo makes no sense.

    May 31st, 2010 @ 09:49 PM

  3. Jean Boussier
    Jean Boussier

    @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.

    June 1st, 2010 @ 01:51 PM

  4. Santiago Pastorino
    Santiago Pastorino
    • 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.

    February 2nd, 2011 @ 04:51 PM

  5. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 2nd, 2011 @ 04:51 PM