Description
Returns the inverse of a specified number. This function is identical to the unary minus operator.
Syntax
inverse = Neg (expression)
Parameters
The Neg function has the following parameters.
Parameter | Description |
---|---|
expression | Must 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
Remarks
* 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)