Atom

math.sqrt()

Computes a square root.

Signature

math.sqrt(x)

Parameters

One number.

Returns

f64. Negative finite inputs yield NaN.

Behavior

Uses the C math operation.

Errors

Requires a number.

Example

Atom
use math
assert(math.sqrt(9) == 3.0)