method
BigInt.mod
BigInt.mod(a, d) -> int
Returns the remainder of a divided by an int divisor, carrying the sign of a. Pairs with BigInt.div.
Example
program Demo {
handler Step phase Update {
let leftover = BigInt.mod(pot, players)
}
}