EsbDecimals - a Free Subset of ESBPCS for .NET

CompareOps.ValueIsNegative Method (Decimal, Decimal)

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

[Visual Basic]
Overloads Public Shared Function ValueIsNegative( _
   ByVal x As Decimal, _
   ByVal precision As Decimal _
) As Boolean
[C#]
public static bool ValueIsNegative(
   decimal x,
   decimal precision
);

Parameters

x
Value to Compare.
precision
Precision to used for comparison, should be positive and small, see DoublePrecisionDef.

Return Value

true if X is strictly Negative.

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.ValueIsNegative Overload List