Arithmetic/Integer: Difference between revisions
m
→{{header|ALGOL W}}
Line 285:
=={{header|ALGOL W}}==
The Algol W integer division operator (called div) truncates towards zero.<br>
The result of the modulo operator (called rem) has the sign of the first operand
<lang algolw>begin
integer a, b;
|