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 the curious (and consequentlya non-standard) '/:=' operator. This operator
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).
NoteThis that itoperator must be "stropped" i.e. enclosed in single quotes. eg.
INT quotient:=355, remainder;
remainder := quotient '/:=' 113;
Giving aSets quotient ofto 3, and a remainder ofto 16.
 
=={{header|ALGOL W}}==
3,032

edits