Int128.opBinary

Support binary arithmetic operators + - * / % & | ^ << >> >>>

  1. Int128 opBinary(Int128 op2)
    struct Int128
    const
    opBinary
    (
    string op
    )
    if (
    op == "+" ||
    op == "-"
    ||
    op == "*"
    ||
    op == "/"
    ||
    op == "%"
    ||
    op == "&"
    ||
    op == "|"
    ||
    op == "^"
    )
  2. Int128 opBinary(Int op2)
  3. Int128 opBinary(IntLike op2)
  4. Int128 opBinary(long op2)
  5. Int128 opBinary(long op2)
  6. Int128 opBinary(long op2)

Parameters

op

one of the arithmetic binary operators

op2 Int128

second operand

Return Value

Type: Int128

value after the operation is applied

Meta