Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterDescription
expressionMust be numeric and must not contain any special characters other than the "-" (minus sign), E scientific notation, or "." (decimal point). If the expression contains invalid characters, the program will cause an error indicating non-numeric data has been intercepted.

See also

Not()

Remarks

Code Block
* This returns the inverse of the variable X.
Y = Neg(X)
* -1 is assigned to BELOW_ZERO.
BELOW_ZERO = Neg(1)
* 100 is assigned to HUNDRED.
HUNDRED = Neg(-1E2)