-
-
Notifications
You must be signed in to change notification settings - Fork 18
sqr
drewmccluskey edited this page Jan 14, 2019
·
3 revisions
Returns the square of the input value
sqr(x)
Argument | Description |
---|---|
double x |
The value to square |
Returns: double
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.
var squaredNumber = sqr(5); //return 25
This code will set var squaredNumber to 25 because 5*5 = 25.
Back to number_functions