Negate Function

Owning Palette: Numeric VIs and Functions

Requires: Base Development System

Negates the input value.

The connector pane displays the default data types for this polymorphic function.

Example

 Add to the block diagram  Find on the palette
x can be a scalar number, a fixed-point number, an array or cluster of numbers, an array of clusters of numbers, and so on. x cannot be an unsigned integer, because unsigned integers represent only non-negative integers.
-x is the negative value of x.

Note  You can manually configure this function to output data of a type you want. To specify the output data type, right-click the function and select Properties to display the Object Properties dialog box. On the Output Configuration page, click the Representation icon and select the data type you want. A blue coercion dot appears on the output terminal of the function to indicate that you have configured the output data type.

Example

Refer to the Numeric Functions VI in the labview\examples\Numerics directory for an example of using the Negate function.

 Open example  Find related examples