WMLScript sqrt() Function

The sqrt() function returns the square root of a number.

Syntax

n = Float.sqrt(x)
Component Description
n The floating-point number returned by this function.
x Number.

Example

var a = Float.sqrt(9);
var b = Float.sqrt(6.25);

Result

a = 3
b = 2.5