Why do float and int have such different maximum values even though they’re the same number of bits?
Your intuition quite rightly tells you that there can be no more information content in one than the other, because they both have 32 bits. But that doesn’t mean we can’t use those bits to represent different values. Suppose I invent two new datatypes, uint4 and foo4. uint4 uses 4 bits to represent an integer, … Read more