Skip to content

Bytes is with a capital B #174

@b-lev

Description

@b-lev

The functions number_bytes_format() and number_bytes() incorrectly return a lower case "b".

number_bytes_format()(sample(3000000000, 3))
[1] "899 Mb" "541 Mb" "78 Mb"

But that should read
[1] "899 MB" "541 MB" "78 MB".

In fact, the web page cited in the help document (http://en.wikipedia.org/wiki/Units_of_information) states that:

The IEEE 1541-2002 standard specifies "B" (upper case) as the symbol for byte

The lowercase "b" is for bits. I wouldn't quibble except that the function has the word "byte" in the name. (Scales is an essential package. Thanks for writing it!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions