[]
Checks if a and b are almost equals, taking into account the magnitude of floating point numbers. See Remarks. See remarks.
public static bool NearEqual(float a, float b)
Type | Name | Description |
---|---|---|
float | a | The left value to compare. |
float | b | The right value to compare. |
Type | Description |
---|---|
bool |
|
The code is using the technique described by Bruce Dawson in Comparing Floating point numbers 2012 edition.