Returns True if two numbers are equal within the specified tolerance (that is, almost equal).
Namespace: Autodesk.iLogic.Runtime
Assembly: Autodesk.iLogic.Runtime (in Autodesk.iLogic.Runtime.dll) Version: 30.0
Syntax
VB
Public Shared Function EqualWithinTolerance ( a As Double, b As Double, tolerance As Double ) As Boolean
C#
public static bool EqualWithinTolerance( double a, double b, double tolerance )
Parameters
- a
- Type: System.Double
First number. - b
- Type: System.Double
Second number. - tolerance
- Type: System.Double
The tolerance.