EsbDecimals - a Free Subset of ESBPCS for .NET

CompareOps.LesserValue Method (Decimal, Decimal, Decimal)

Returns true if Values are not within a "small" value of each other, and the First Value is lesser.

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

Parameters

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

Return Value

True if First Value is Lesser.

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