Edit

Share via


MathF.Sqrt(Single) Method

Definition

Returns the square root of a specified number.

C#
public static float Sqrt(float x);

Parameters

x
Single

The number to take the square root of.

Returns

The square root of x

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.0 (package-provided), 2.1

See also