Skip to content

Content Tagged "floating"

Page 1 of 1

Content Tagged "floating"

Simple Floating Point Equality Check in C++

December 21, 2015Category: Software
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 values. At that point, you…

All tags