EsbDecimals - a Free Subset of ESBPCS for .NET

CompareOps.LesserValue Method (Double, Double, Double)

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 Double, _
   ByVal y As Double, _
   ByVal precision As Double _
) As Boolean
[C#]
public static bool LesserValue(
   double x,
   double y,
   double precision
);

Parameters

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

Return Value

True if First Value is Lesser.

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