API ReferencecoremathsqrOn this pagesqr sqr(x) ⇒ number Square input (x^2) Kind: global function ParamTypexnumber Example sqr(2) === 4 sqr(4) === 16