Skip to content
ricardoboss edited this page Sep 13, 2023 · 1 revision

Description

sqrt returns the square root of a number.

Syntax

sqrt(number x)
  • x is the number to take the square root of.

Remarks

  • if x is negative, sqrt returns NaN

Examples

sqrt(4) // 2
sqrt(9) // 3

sqrt(-1) // NaN