Math.Sqrt Method

Returns the square root of a value.

...Math.Sqrt (value)

Prerequisites

None

Parameters

value

A required expression that evaluates to any numerical data type, e.g. Integer, Single, Double.

Remarks

Returns the square root of any positive number as a double precision value.

Examples

Dim root As Single, int_root As Integer
root = Math.Sqrt(1.44) ' Sets root equal to 1.2
int_root = Math.Sqrt(1.69) ' Sets int_root equal to 1

See Also

Math Class