sqr(X)

Returns the given value squared.

Syntax

sqr(X)

Input

Argument Type Description
X integer or decimal A numeric value

Return Value

Returns a decimal number corresponding to X squared, or X2.

If X is N/A, the result is 0.

Sample Usage

X sqr(X)
-5 25
-4.5 20.25
2 4
4.5 20.25
5.0 25
NA 0