Regarding the documentation (https://docs.elementscompiler.com/Oxygene/Expressions/ArithmeticAndLogicalExpressions/#arithmetic-operators) it is not clear what the difference is (and I think that it must be clarified in the documentation).
What I understand:
- “/” makes a rounded division
- “div” makes a truncated division (takes integer part of the division, without rounding).
But, for the rounded division: is it rounded towards zero or rounded towards infinity?
This makes a huge difference for negative numbers: in the first case “-3 / 2” returns -1, in the second one, it returns -2.
Note: doing a test, both (-3 / 2) and (-3 div 2) return -1. So why there is a difference in the description of the two operators in the documentation?