Indicates if two double values are equal within a specific maximum difference range.
Namespace: PDTec.IceNet.Sdk.UtilsAssembly: PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 6.0.0.0 (6.0.6225.27214)
Syntaxpublic static bool IsEqual(
double v0,
double v1,
double epsilon
)
Parameters
- v0
- Type: SystemDouble
The first value. - v1
- Type: SystemDouble
The second value. - epsilon
- Type: SystemDouble
The maximum difference range. Should be a positive value.
Return Value
Type:
Booleantrue if the absolute difference is smaller than
epsilon; otherwise
false.
See Also