> 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/subtraction.md).

# Subtraction

## Syntax

```swift
x - y
```

## Explanation

The subtraction operator returns the difference of the two operands as a new number.

## Examples

```swift
2 - 1    // 1
-1 - 1   // -2
-1 - -1  // 0
```
