Computes the square of the input value.
The connector pane displays the default data types for this polymorphic function.

![]() |
x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on. |
![]() |
x^2 is of the same numeric representation as x. |
If you wire fixed-point values to Numeric functions such as Add, Subtract, Multiply, and Square, the functions usually return values that do not lose any bits of word length. However, if the operation creates a value that exceeds the maximum word length that LabVIEW accepts, overflow or quantization conditions can occur. LabVIEW accepts a maximum word length of 64 bits. Use the properties dialog boxes for Numeric functions to configure how LabVIEW handles overflow or quantization of fixed-point data.
Refer to the Add - Various Uses VI in the labview\examples\general\functions\Numeric directory for an example of using the Square function.