Go to the source code of this file.
Defines | |
#define | DBL_TOLERANCE 0.0001 |
The default tolerance for double-sized floating-point comparison functions. | |
#define | FLT_TOLERANCE 0.0001f |
The default tolerance for single-sized floating-point comparison functions. | |
#define | FLT_MAX __FLT_MAX__ |
The maximum value that can be expressed using a 32-bit floating point value. | |
Functions | |
bool | IsEquivalent (float f1, float f2) |
Returns whether two floating-point values are equivalent within a given tolerance. | |
bool | IsEquivalent (float f1, float f2, float tolerance) |
Returns whether two floating-point values are equivalent within a given tolerance. | |
bool | IsEquivalent (double f1, double f2) |
Returns whether two double-sized floating-point values are equivalent. | |
bool | IsEquivalent (double f1, double f2, double tolerance) |
Returns whether two double-sized floating-point values are equivalent within a given tolerance. |
|
The maximum value that can be expressed using a 32-bit floating point value. This macro is pre-defined in the Windows API but is missing on MacOSX and other platforms. |
|
Returns whether two double-sized floating-point values are equivalent within a given tolerance.
|
|
Returns whether two double-sized floating-point values are equivalent.
|
|
Returns whether two floating-point values are equivalent within a given tolerance.
|
|
Returns whether two floating-point values are equivalent within a given tolerance.
|