MathUtilsIsEqualRelative Method |
Indicates if two double values are equal within a relative difference range.
Namespace:
PDTec.IceNet.Sdk.Utils
Assembly:
PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax public static bool IsEqualRelative(
double v0,
double v1,
double maxRelDiff
)
Parameters
- v0
- Type: SystemDouble
The first value. - v1
- Type: SystemDouble
The second value. - maxRelDiff
- Type: SystemDouble
The relative difference range. Should be a positive value.
Return Value
Type:
Booleantrue if the relative difference is smaller than
maxRelDiff; otherwise
false.
See Also