Go to the documentation of this file.
18 #ifndef FloatCompare_h
19 #define FloatCompare_h
28 static bool equal(T firstValue, T secondValue);
29 static bool equal(T firstValue, T secondValue, T errorDelta);
31 static bool notequal(T firstValue, T secondValue);
32 static bool notequal(T firstValue, T secondValue, T errorDelta);
50 if ((
fabs(firstValue - secondValue)) <= errorDelta)
58 return !equal(firstValue, secondValue);
64 return !equal(firstValue, secondValue, errorDelta);
FloatCompare< double > Float64Compare
static bool equal(T firstValue, T secondValue)
static bool notequal(T firstValue, T secondValue)
FloatCompare< float > Float32Compare