Numerical utilities.
More...
#include <BeNumerical.h>
static int BeFinite |
( |
double |
v | ) |
|
|
static |
static int BeIsnan |
( |
double |
v | ) |
|
|
static |
static double BeNextafter |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
static int Compare |
( |
double |
sv1, |
|
|
double |
sv2 |
|
) |
| |
|
static |
Compare two values to the closest tolerance possible.
- Parameters
-
[in] | sv1 | a value |
[in] | sv2 | another value |
- Returns
- 0 if equal within the closest possible tolerance, -1 if sv1 is less than sv2, and 1 if sv1 is greater than sv2
static double ComputeComparisonTolerance |
( |
double |
sv1, |
|
|
double |
sv2 |
|
) |
| |
|
static |
Compute the tolerance that should be used to check if these two numbers are not equal.
- Parameters
-
[in] | sv1 | a value |
[in] | sv2 | another value |
static double NextafterDelta |
( |
double |
sv | ) |
|
|
static |
Get the smallest value that, when added to fabs(sv), yields a number that is not equal to fabs(sv).
This can be used to compute a comparison tolerance between numbers that are about as large as sv.
static UInt32 ResetFloatingPointExceptions |
( |
UInt32 |
newFpuMask | ) |
|
|
static |
A platform-specific function that clears any pending floating point exceptions.
The documentation for this struct was generated from the following file: