MathF.Sqrt(Single) Method

Definition

Returns the square root of a specified number.

public:
 static float Sqrt(float x);
public static float Sqrt (float x);
static member Sqrt : single -> single
Public Shared Function Sqrt (x As Single) As Single

Parameters

x
Single

The number whose square root is to be found.

Returns

One of the values in the following table.

x parameter Return value
Zero or positive The positive square root of x.
Negative NaN
Equals NaNNaN
Equals PositiveInfinityPositiveInfinity

Applies to

See also