I have 2 values: A and B. I'm using the function MOD.
if A > B then
result := A mod B
if A < B then
result := B mod A
I'm just wondering whether there is a shorter way to write this using the function MOD. I mean whether there is a way that the program will detect which value is bigger and do the function for you. Thank you.