LOTUSSCRIPT LANGUAGE


Negation operator
Returns the negative value of a number.

Syntax

-numExpr

Elements

numExpr


Return value

The result is of the same data type as numExpr. The data type of -v, where v has the value EMPTY, is Long.

If numExpr is a NULL, the result is a NULL.

Example

Dim x As Integer
x% = 56
Print -x%               ' Prints -56

See Also