API Reference › BigInt › BigInt.sub
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)
  }
}
← All symbols