mod method

void mod(
  1. int val
)

Modulo

Implementation

void mod(int val) {
  _val = _val % val;
}