Wrote an FFL implementation of a modulo function which does not truncate the result to an int.