Skip to content
drewmccluskey edited this page Jan 14, 2019 · 3 revisions

sqr

Returns the square of the input value

Syntax:

sqr(x)
Argument Description
double x The value to square

Returns: double

Description:

This function will take the input variable and return it in its squared form. It takes the value and multiplies it by itself one time.

Example:

var squaredNumber = sqr(5); //return 25

This code will set var squaredNumber to 25 because 5*5 = 25.

Back to number_functions

Clone this wiki locally