EsbDecimals - a Free Subset of ESBPCS for .NET

CompareOps.GetPrecision Method (Single, Single, Single)

Returns the Precision Value to use using the specified Precision

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

Parameters

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

Remarks

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

See Also

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