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( double p_dValueA, double p_dValueB, double p_dTolerance )

Parameters

Parameter Type Parameter Name Documentation
doublep_dValueAA <float64> representing value A.
doublep_dValueBA <float64> representing value B.
doublep_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 Scenome Scripting Language code base.