> For the complete documentation index, see [llms.txt](https://docs.cheddar.vihan.org/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheddar.vihan.org/docs/mathematics/negation.md).

# Negation

## Syntax

```swift
-x
```

## Explanation

Unary `-`, performs negation on the operand.

## Examples

```swift
-2     // -2
-(-2)  // 2
```
