---
id: bigint-mod
name: BigInt.mod
category: bigint
kind: namespace-method
tokens: BigInt.mod
sig: BigInt.mod(a, d) -> int
tip: Remainder of a big integer divided by an int.
order: 8
ns: BigInt
member: mod
---
Returns the remainder of a divided by an int divisor, carrying the sign of a. Pairs with BigInt.div.
```ludic
program Demo {
handler Step phase Update {
let leftover = BigInt.mod(pot, players)
}
}
```