Maximum is max(Number1, Number2)which should be preferred for portability.
In coroutining mode, if Number1 or Number2 are uninstantiated, the call to max/3 is delayed until these variables are instantiated.
Success:
max(5, 2, 5).
max(2_3, 3_4, 3_4).
max(5.0 , 2.0, 5.0).
max(5, 2.0, 5.0). (The types are adjusted)
max(5, 2_0, 5_0). (The types are adjusted)
Fail:
max(1, 2, 3).
max(1, 2, 2.0).
max(5, 2, r).
max(5, 2.0, 5).
Error:
max(A, 2, 6). (Error 4).
max(4 - 2, 3, 3). (Error 24).