- For "-": the negation of this BigInt
- For "~": the bitwise complement of this BigInt (defined as -(this+1))
BigInt.opUnary
Implements unary operators +, -, ~ for BigInt.
Parameters
op | The operator string ("+", "-", or "~") |
Returns
- For "+": a copy of this BigInt (identity operation)
Implements pre-increment (++) and pre-decrement (--) operators for BigInt.
Parameters
op | The operator string ("++" or "--") |
Returns
Reference to this BigInt after modification