method
BigInt.sub
BigInt.sub(a, b) -> BigInt
Returns the exact difference a - b; the result is negative when b is larger.
Example
program Demo {
handler Step phase Update {
let remaining = BigInt.sub(bank, cost)
}
}BigInt.sub(a, b) -> BigInt
Returns the exact difference a - b; the result is negative when b is larger.
program Demo {
handler Step phase Update {
let remaining = BigInt.sub(bank, cost)
}
}