Sqrt Method

Math::Sqrt Method (Double)

 

Returns the square root of a specified number.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public:
static double Sqrt(
	double d
)

Parameters

d
Type: System::Double

The number whose square root is to be found.

Return Value

Type: System::Double

One of the values in the following table.

d parameter

Return value

Zero or positive

The positive square root of d.

Negative

NaN

Equals NaN

NaN

Equals PositiveInfinity

PositiveInfinity

The square root of the area of a square represents the length of any side of the square. The following example displays the area of some cities in the United States and gives an impression of each city's size if it were represented by a square.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft