Skip to main content
11 events
when toggle format what by license comment
Jul 6, 2023 at 10:35 comment added csstudent1418 @AustinHemmelgarn Still each character is 8 Bit long in memory. It would be a little awkward, given common circuitry in your CPU and RAM, to store data that takes up specifically only 7 Bits instead of 8.
Aug 30, 2021 at 19:39 comment added Austin Hemmelgarn Nitpick: ASCII is actually a 7-bit standard, so strictly speaking each ASCII character is not 1 byte long, and for that matter essentially nothing is using true ASCII anymore (in the Western world it’s usually either Unicode or an ISO 8859 derivative, while in East Asia it’s usually one of Unicode, GB 18030, Shift-JIS, or Big5).
Aug 30, 2021 at 14:59 comment added JimmyJames +1 For actually answering the question without delving into number theory etc.
Aug 30, 2021 at 13:12 comment added Jörg W Mittag If you only want to represent the number 65535, then you need 0 bits, since you are not actually encoding any information. You know that the value is 65535. If you only want to represent the numbers 65535 and 42 then you need 1 bit. Only if you want to represent all the numbers from 0 to 65535, you need 16 bits. Which still doesn't tell you how many bytes you need, because the size of a byte depends on the architecture. Historically, a byte has been 6, 7, 8, 9, 12, and 18 bits, but even today, there are still modern architectures with 1, 12, 16, 24, and 32 bit bytes.
Aug 30, 2021 at 11:18 history edited csstudent1418 CC BY-SA 4.0
added 1 character in body
S Aug 30, 2021 at 11:17 review First answers
Aug 30, 2021 at 12:28
S Aug 30, 2021 at 11:17 history suggested TRiG CC BY-SA 4.0
Removed excessive code formatting.
Aug 30, 2021 at 10:45 review Suggested edits
S Aug 30, 2021 at 11:17
Aug 30, 2021 at 9:10 history edited csstudent1418 CC BY-SA 4.0
deleted 1 character in body
S Aug 30, 2021 at 9:04 review First answers
Aug 30, 2021 at 9:41
S Aug 30, 2021 at 9:04 history answered csstudent1418 CC BY-SA 4.0