I'm writing a program that has a compare feature in it that allows me to check if one number is bigger than the other, less than or the same by returning -1, 1 and 0;
The piece of code that I have is
min(1, max(-1, b-a))
First off is this correct?
Secondly, what #include do I need to use if min and max are in my program?