speedtest-cli icon indicating copy to clipboard operation
speedtest-cli copied to clipboard

Changed to uppercase B for Bytes

Open johnybradshaw opened this issue 6 years ago • 4 comments

This makes it clearer, and is the standard way of representing the difference between bit and Byte.

johnybradshaw avatar Oct 02 '18 07:10 johnybradshaw

I agree. Standard names units "bit" (bit) or "B" (byte), "b" for bit is not standard. IEC 60027-2, Ed. 3.0, (2005–2008): Letter symbols to be used in electrical technology – Part 2: Telecommunications and electronics.

jschwender avatar Jul 18 '19 08:07 jschwender

This makes it clearer, and is the standard way of representing the difference between bit and Byte.

But only in abbreviations such as kbit vs kB or Mbit vs MB. But when using the whole word (bit, byte) one sticks with a non-capitalized form unless the unit is a proper name (e.g. Ohm, Volt, Ampere vs miles, inches, bits, or bytes). The only times you would want "Byte" instead of "byte" are

  • As the first world of a sentence
  • As part of a Title Case sentence

If you are trying to catch those cases, then you also need to change 'bit' to 'Bit' in the same line.

If, instead, you are trying to correct the "Mbit/s" and "Mbyte/s" that are displayed, a more accurate change would be to replace "byte" with "B" - producing the technically correct "MB/s" and "Mbit/s".

Then, of course, you need to decide if you are following JEDEC, IEC, or some other standard as they don't all agree.

BTW I did check the code, and "Mbit" or "MB" are correct for this implementation, not "Mibit" or "MiB"

kdopen avatar May 19 '21 15:05 kdopen

This is wrong, byte is a word, it should be from little letter. School level grammar.

ZaquL avatar May 29 '22 13:05 ZaquL

If we talk about a number followed by a prefix and a unit, school grammar is unlikely normative. The most recent standard is IEC 80000-13:2008, and this is the one that is referred by major standardization comittees (BIMP, NIST, IEC).

jschwender avatar May 29 '22 18:05 jschwender

Just look into https://en.wikipedia.org/wiki/Byte it is all small letters.

вс, 29 мая 2022 г., 21:07 jschwender @.***>:

If we talk about a number followed by a prefix and a unit, school grammar is unlikely normative. The most recent standard is IEC 80000-13:2008, and this is the one that is referred by major standardization comittees (BIMP, NIST, IEC).

— Reply to this email directly, view it on GitHub https://github.com/sivel/speedtest-cli/pull/544#issuecomment-1140497957, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZAYQWWPDAFDSI5FEKXBPWLVMOW5ZANCNFSM4FYOBFJQ . You are receiving this because you commented.Message ID: @.***>

ZaquL avatar Oct 11 '22 09:10 ZaquL

IMHO, it would be best to use the standard IEC units based on binary instead decimal base, since we always have defined internet speeds with a binary base (1024 bits = 1 kilobit)

With decimal base we have 1000 bytes = 1kB = 8000 bits = 8kbit. With binary base we have 1024 bytes = 1KiB = 8192 bits = 8 Kibit

Speeds could then be noted as 8192 Kibit/s, 1024 KiB/s, 8 Mibit/s or 1 MiB/s.

https://en.m.wikipedia.org/wiki/Byte#Multiple-byte_units

Forza-tng avatar Jan 08 '23 01:01 Forza-tng