|
Yeah, it seems kind of odd that MIN returns the maximum of the arguments while MAX returns the minimum, but it makes sense if you think about it in another way:
MIN sets the minimum allowable value of an expression to another value.
MAX sets the maximum allowable value of an expression to another value.
So if you do
a = a + 1 MAX 127
then a will increment, but will never go higher than 127.
Hope that helps you understand.
__________________
Ameya Agaskar
Team 293 alumnus
|