Negation operator (LotusScript® Language)

Returns the negative value of a number.

Syntax

- numExpr

Elements

numExpr

Any numeric expression. An EMPTY operand (DataType 0) is considered a 0.

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