Anonymous user
Arithmetic/Integer: Difference between revisions
→{{header|PARI/GP}}: explain division
m (→{{header|J}}) |
(→{{header|PARI/GP}}: explain division) |
||
Line 1,196:
=={{header|PARI/GP}}==
Integer division with <code>\</code> rounds to <math>-\infty</math>. There also exists the <code>\/</code> round-to-nearest (ties to <math>+\infty</math>) operator. Ordinary division <code>/</code> does not round but returns rationals if given integers with a non-integral quotient.
<lang parigp>arith(a,b)={
print(a+b);
|