Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Negation

Syntax

-x

Explanation

Unary -, performs negation on the operand.

Examples

-2     // -2
-(-2)  // 2

Last updated