Method

Sqrt


Description

Returns the square root of the value specified.

Usage

result = Sqrt(value)

Part

Type

Description

value

Double

The value you want the square root of.

result

Double

The square root of the value.

Notes

The Sqrt function returns the square root of the value passed to it.

Sample code

This example uses the Sqrt function to return the square root of a number.

Var d As Double
d = Sqrt(16) ' returns 4

Compatibility

All project types on all supported operating systems.

See also

^, * operators.