Arithmetic Metamethods

  • Metamethods can be defined for:
    • Addition (+) __add
    • Subtraction (-) __sub
    • Multipication (*) __mul
    • Division (/) __div
    • Modulo (%) __mod
    • Exponentiation (^) __exp
    • Negation (unary -) _unm
    • Concatenation (..) __concat
  • It might be that some of these operators make no sense in terms of the types involved