Within Data Member Function

Returns true if value A is within a certain distance from value B. The underlying expression performs the comparison: fabs( a - b ) <= tolerance;

Prototype

int32 Within( float64 p_dValueA, float64 p_dValueB, float64 p_dTolerance )

Parameters

Parameter Type Parameter Name Documentation
float64p_dValueAA <float64> representing value A.
float64p_dValueBA <float64> representing value B.
float64p_dToleranceA <float64> representing the maximum distance to allow between value A and value B.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Simdify Scripting Language code base.