NEG(), NEGS() |
![]() ![]() ![]() |
The NEG() function returns the arithmetic inverse of a value. The NEGS() function is similar to NEG() but operates on successive elements of a dynamic array, returning a similarly structured dynamic array of results
Format
NEG(expr)
where
The NEG() function returns the negative of expr. It is equivalent to -expr.
If expr is a numeric array (a dynamic array where all elements are numeric), the NEG() function operates on each element in turn and returns a numeric array with the same structure as expr.
Example
N = NEG(A)
This statement finds the arithmetic inverse of A and assigns this to N. |