Casting out nines checks an integer calculation by replacing each number with the remainder of its digit sum on division by 9, which is the number’s residue modulo 9, and checking that the calculation holds for the residues.
Quantitative Finance · Glosario