Wait, so comparisons in floating point only just KINDA work? What DOES work?
An introduction to the floating point numbers (iee-754), and some of the oddities surrounding it.
🛒 Recommended books (on Amazon): https://www.amazon.com/hz/wishlist/ls/1IMV0IR3QIZMQ?type=wishlist&tag=simondev01-20&sort=priority&viewType=grid
❤️ Support me on Patreon: https://www.patreon.com/simondevyt
🌍 My Gamedev Courses: https://simondev.teachable.com/
Disclaimer: Commission is earned from qualifying purchases on Amazon links.
Follow me on:
Twitter: https://twitter.com/iced_coffee_dev
Instagram: https://www.instagram.com/beer_and_code/
Github: https://github.com/simondevyoutube/
Some great resources:
https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html
https://randomascii.wordpress.com/category/floating-point/
Some more great stuff:
https://en.wikipedia.org/wiki/Floating-point_arithmetic
https://en.wikipedia.org/wiki/Subnormal_number
https://en.wikipedia.org/wiki/Unit_in_the_last_place
https://www.h-schmidt.net/FloatConverter/IEEE754.html
https://cowboyprogramming.com/2007/01/05/visualizing-floats/