EsbDecimals - a Free Subset of ESBPCS for .NET

CompareOps.ValueIsNegative Method (Single)

Returns true if Value is not within a "small" value of 0 and is Negative. DoublePrecisionDef defines the precision.

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

Parameters

x
Value to Compare.

Return Value

True if Value is Negative.

Remarks

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

See Also

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