If compiling with -Wfloat-equal, I get the following error: comparing floating point with == or != is unsafe [-Werror=float-equal]