Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kBool kMath_NearlyEquals32f | ( | k32f | a,
|  | k32f | b
| ) |  |

Reports whether two single-precision values are approximately equal.

There is no simple, general-purpose solution for comparing two floating-point numbers for approximate equality. This method implements a simple approach that will not work for all cases. Use with caution.

Parameters

  a | First value.
  b | Second value.

Returns
  kTRUE if approximately equal.