#floating point
How a GPU stores a real number: a sign, a power of two, and a fraction of 24 binary digits, about seven decimal ones in a 32-bit float. The digits are kept relative to the number's size, so a tiny number is as exact as a large one, but a tiny number added to a large one keeps only the digits the large one has room for: between 0.5 and 1, floats are 2^-24 apart, about 6 × 10^-8.
1 shader
