NEGATE

Purpose:

Multiplies an expression by -1.

Syntax:

NEGATE(val)

val

-

A scalar, series or table.

Returns:

A scalar, series, or table.

Example:

negate({1, 2, 3, 4, 0})

 

returns a series {-1, -2, -3, -4, 0}.

Remarks:

Equivalent to (-val), the arithmetic negative of val.

See Also:

&& || ! AND OR NOT XOR (Logical Operators)

< <= > >= == != (Conditional Operators)

NOT