I'm looking for the modulus algorithm. I'm trying to make a modulus function that operates on a base N number (represented as a string most likely) but haven't had any luck when searching for it. Links are welcome.