Returns true if value A is within a certain distance from value B. The underlying expression performs the comparison: fabs( a - b ) <= tolerance;
int32 Within( float64 p_dValueA, float64 p_dValueB, float64 p_dTolerance )
Parameter Type | Parameter Name | Documentation |
---|---|---|
float64 | p_dValueA | A <float64> representing value A. |
float64 | p_dValueB | A <float64> representing value B. |
float64 | p_dTolerance | A <float64> representing the maximum distance to allow between value A and value B. |
None published. Please look for an example in the Simdify Scripting Language code base.