Why does a float variable stop incrementing at 16777216 in C#?
Short roundup of IEEE-754 floating point numbers (32-bit) off the top of my head: 1 bit sign (0 means positive number, 1 means negative number) 8 bit exponent (with -127 bias, not important here) 23 bits “mantissa” With exceptions for the exponent values 0 and 255, you can calculate the value as: (sign ? -1 : … Read more