I'm working on sml project in which I have to implement these two function rem & mod for custom datatype.
I know the definition of remainder rem.
dividend = divisor * quotient + remainder
What is the definition of mod? Please explain me the difference between these in simple words.