sqrt

returns the square root of a number.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

the sqrt of number

# Params

- number : Any non-negative number, or an expression that evaluates to such a number.

# Examples

sqrt(9) -- returns 3

put sqrt(sideA^2 + sideB^2) into hypotenuseLength

# Description

Use the sqrt function to find the square root of a number.

The square root of a number is the number which must be squared to obtain number : sqrt(number)^2 is equal to number.

If a math operation on finite inputs produces a non-finite output, an execution error is thrown. See math operations for more information.

# Tags

# See

- **operator:** [[^]] - **function:** exp, number - **glossary:** return, non-negative, math operation - **control structure:** function