EsbDecimals - a Free Subset of ESBPCS for .NET

CompareOps.GetPrecision Method (Decimal, Decimal, Decimal)

Returns the Precision Value to use using the specified Precision

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

Parameters

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

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