EsbDecimals - a Free Subset of ESBPCS for .NET | |
CompareOps.ValueIsZero Method (Double, Double)
Returns true if Value is within a "small" value of 0.
[Visual Basic]Overloads Public Shared Function ValueIsZero( _
ByVal
x As
Double, _
ByVal
precision As
Double _
) As
Boolean Parameters
- x
- Value to Compare.
- precision
- Precision to used for comparison, should be positive and small,
see DoublePrecisionDef.
Return Value
True if Value is very close to Zero.
Remarks
There is an overloaded version without the Precision that will use
DoublePrecisionDef for the Precision value.
See Also
CompareOps Class | Esb.Math Namespace | CompareOps.ValueIsZero Overload List