Share via


Math.Sqrt(Double) Method

Definition

Returns the correctly rounded positive square root of a double value.

[Android.Runtime.Register("sqrt", "(D)D", "")]
public static double Sqrt (double a);
[<Android.Runtime.Register("sqrt", "(D)D", "")>]
static member Sqrt : double -> double

Parameters

a
Double

a value.

Returns

the positive square root of a. If the argument is NaN or less than zero, the result is NaN.

Attributes

Remarks

Java documentation for java.lang.Math.sqrt(double).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to