Calculate integer remainders, including cases with negative inputs. Useful for number theory, programming and modular arithmetic practice.