# Remainder

`import { Remainder } from "destack:ops";`

Interface for the `%` operator.

`a % b` becomes `a.remainder(b)`.

```ds title="Remainder"
export newtype interface Remainder<T = this> {
    Output;
    remainder(other: T): this.Output;
}
```

[language/library/src/ops/remainder.ds:5:11](https://github.com/destack-sh/destack/blob/main/language/library/src/ops/remainder.ds#L5-L11)

## Members

### `Output`

The result type.

### `remainder(other: T): this.Output`

Return the remainder after dividing this value by `other`.
