TL;DR: Here you can see a handmade comparison function for floating point values.
While working on a C++ project using templates, I had to perform an equality to see if two values are identical. While the == is OK for integer values, it is not really OK for floating point