11-08-2022, 03:43 PM
Pete
in my math routines I use the same principle to compare 2 numbers, cmp(x, y) would return -1 if x<y, 1 if x>y and 0 if x=y
no need for functions like "is_less", "is_greater" or "is_equal"
in my math routines I use the same principle to compare 2 numbers, cmp(x, y) would return -1 if x<y, 1 if x>y and 0 if x=y
no need for functions like "is_less", "is_greater" or "is_equal"