EsbDecimals - a Free Subset of ESBPCS for .NET

DecimalOps.Sqrt Method (Double)

Computes the Decimal Square Root using Newton's Method.

[Visual Basic]
Overloads Public Shared Function Sqrt( _
   ByVal x As Double _
) As Decimal
[C#]
public static decimal Sqrt(
   double x
);

Parameters

x
We desire the square root of this Value. Must be >= 0

Return Value

Square Root of given Value

Exceptions

Exception TypeCondition
ArithmeticException Thrown when a negative value is passed.

See Also

DecimalOps Class | Esb.Math Namespace | DecimalOps.Sqrt Overload List