EsbDecimals - a Free Subset of ESBPCS for .NET

CompareOps.ValueIsPositive Method (Decimal, Decimal)

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

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

Parameters

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

Return Value

true if X is strictly Positive.

Remarks

There is an overloaded version without the Precision that will use DecimalPrecisionDef for the Precision value.

See Also

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