Arithmetic/Integer: Difference between revisions
m
→{{header|ALGOL 68}}: changed some wording
(added ReScript) |
m (→{{header|ALGOL 68}}: changed some wording) |
||
Line 450:
a UP b = a**b = a↑b = +1.499007808785573768814747570e+288
</pre>
[[ALGOL 68R]] has
is equivalent to the OVERAB operator of the revised report, except it delivers the remainder as a result.
So a '/:=' b sets a to the quotient of a%b and returns the remainder of a%b as a result (Note "%" is the division operator in Algol 68, not the modulo operator - it can also be written as OVER).
INT quotient:=355, remainder;
remainder := quotient '/:=' 113;
=={{header|ALGOL W}}==
|