method
BigInt.neg
BigInt.neg(a) -> BigInt
Returns -a — the same magnitude with the opposite sign.
Example
program Demo {
handler Step phase Update {
let debt = BigInt.neg(balance)
}
}BigInt.neg(a) -> BigInt
Returns -a — the same magnitude with the opposite sign.
program Demo {
handler Step phase Update {
let debt = BigInt.neg(balance)
}
}