#include "float_tools.h" #include #include bool float_is_equal(float a, float b) { return fabsf(a - b) <= FLT_EPSILON * fmaxf(fabsf(a), fabsf(b)); }