qb64-include/max.bm
2022-09-19 01:27:48 +02:00

6 lines
No EOL
151 B
Text

$if Max = undefined then
$let Max = defined
FUNCTION Max (num1, num2)
Max = ((num1 > num2) * -num1) + ((num2 >= num1) * -num2)
END FUNCTION
$end if