Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: Tim MeagherActually, the first entry should be:
subtract(5, 7) # value: -2
The second entry is correct, as it will return 12 (it actually says 12 in the documentation I'm looking at, not -12).
Equates to a - b -c
So
subtract(5,7) = 5 -7 = -2.
subtract(7, (long)5, -10) = 7 - 5 - (-10) = 2 + 10 = 12
I'll raise a doc bug about the first example.
Tim.