Jump to content

Talk:Bit-length

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Bit-length of a binary string

[edit]

The most generic definition for bit-length is using bit strings as reference, instead Natural numbers. The formula with integer log2 is not valid for bit sitrings because its length can be bigger, as in the 0001 here the bit-length is 4 not 1. Krauss (talk) 11:05, 15 April 2019 (UTC)[reply]

Do you have a citation defining it that way? The usages I see match the current Wolfram definition which is with respect to the information that is to be encoded, not the actual representation chosen in a particular implementation. For measuring hardware, I'd use normal measurement terms with units: 8-bit bytes have a width of 8 bits. They can represent all integers with a bit-length less than or equal to 8.★NealMcB★ (talk) 18:19, 24 January 2021 (UTC)[reply]