EsbDecimals - a Free Subset of ESBPCS for .NET

CompareOps.GetPrecision Method (Double, Double, Double)

Returns the Precision Value to use using the specified Precision.

[Visual Basic]
Overloads Public Shared Function GetPrecision( _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal precision As Double _
) As Double
[C#]
public static double GetPrecision(
   double x,
   double y,
   double precision
);

Parameters

x
First Value to CompareOps.
y
Second Value to CompareOps.
precision
Precision Value to use - should be small and positive like DoublePrecisionDef.

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