EsbDecimals - a Free Subset of ESBPCS for .NET

CompareOps.ValueIsZero Method (Single)

Returns true if Value is within a "small" value of 0. FloatPrecisionDef defines the precision.

[Visual Basic]
Overloads Public Shared Function ValueIsZero( _
   ByVal x As Single _
) As Boolean
[C#]
public static bool ValueIsZero(
   float x
);

Parameters

x
Value to Compare.

Return Value

True if Value is very close to Zero.

Remarks

There is an overloaded version that allows you to specifiy the precision of the comparison.

See Also

CompareOps Class | Esb.Math Namespace | CompareOps.ValueIsZero Overload List