---
title: "-=(_:_:)"
framework: combine
role: symbol
role_heading: Operator
path: "combine/subscribers/demand/-=(_:_:)-9pwnc"
---

# -=(_:_:)

Subtracts an integer from a demand, and assigns the result to the demand.

## Declaration

```swift
static func -= (lhs: inout Subscribers.Demand, rhs: Int)
```

## Discussion

Discussion When subtracting any value from .unlimited, the result is still .unlimited. A negative demand is impossible; when an operation would result in a negative value, Combine adjusts the value to .max(0).

## See Also

### Performing mathematical operations

- [*(_:_:)](combine/subscribers/demand/*(_:_:).md)
- [*=(_:_:)](combine/subscribers/demand/*=(_:_:).md)
- [+(_:_:)](combine/subscribers/demand/+(_:_:)-2hdad.md)
- [+(_:_:)](combine/subscribers/demand/+(_:_:)-902we.md)
- [+=(_:_:)](combine/subscribers/demand/+=(_:_:)-20lis.md)
- [+=(_:_:)](combine/subscribers/demand/+=(_:_:)-3k1hv.md)
- [-(_:_:)](combine/subscribers/demand/-(_:_:)-1r0gm.md)
- [-(_:_:)](combine/subscribers/demand/-(_:_:)-6mw4s.md)
- [-=(_:_:)](combine/subscribers/demand/-=(_:_:)-1d0m9.md)
