@righto.comKen Shirriff @righto.com
2026-10-18 17:03 UTC
Subtracting two floating-point numbers, say 8-7.5, takes a few steps. Floating-point numbers are stored as a power of 2 times a binary number. The numbers are shifted so the exponents align, and then subtracted in binary. To get rid of zeros at the front, the result is shifted (normalized).
1 picture (not shown on this phone): An example subtraction: 8 - 7.5. The numbers are expressed as powers of two times fractional binary numbers. For instan…
A reply in a thread.
41 likes, 1 reposts, 1 replies
3 Next post4 More from @righto.comBackBluesky home