Anonymous user
Arithmetic/Integer: Difference between revisions
m
→[[Basic integer arithmetic#ALGOL 68]]
m (→Python 3.0 compatible code: added product) |
|||
Line 38:
a MOD b = a%*b = a%×b = a÷×b = a÷*b = +16
a UP b = a**b = a↑b = +1.499007808785573768814747570e+288</pre>
[[ALGOL 68R]] has the curious (and consequently non-standard) /:= operator. This operator
delivers two INTs as a result. eg.
INT quotient:=355, remainder;
remainder := quotient /:= 113;
Giving a quotient of 3, and a remainder of 16.
=={{header|AWK}}==
<pre>/[0-9]* [0-9]*/{ print ($1 + $2)
|