If you’ve read the headline and think that ten sounds like an awful lot of different binary-number formats, perhaps you are guessing that it includes floating point, or ones’ complement and other archaic representations, but no, this is all about what’s in common current use, all integers, and all based on two’s complement. This post… Continue reading Ten standard ways of representing binary numbers
Tag: bits & bytes
Computing the integer size of a sample
In PCM audio processing, each sample is an integer of at most 32 bits. This blog post is about finding the number of bytes (octets) that can hold a sample, which is nontrivial when the number of bytes is restricted to match an integer type. Easy case: 1, 2, 3, 4 The smallest number of… Continue reading Computing the integer size of a sample