EsbDecimals - a Free Subset of ESBPCS for .NET

CompareOps.GetPrecision Method (Single, Single)

Returns the Precision Value to use using the Default Precision. See FloatPrecisionDef.

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

Parameters

x
First Value to CompareOps.
y
Second Value to CompareOps.

Remarks

There is an overloaded version that allows you to specifiy the precision of the comparison.

See Also

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