Zen API
 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
aFirst value.
bSecond value.
Returns
kTRUE if approximately equal.