Sha256: acd986b1fabd9b1896fcaae3b0f99a3f1c73189e22710a7bec5e205910616a07

Contents?: true

Size: 322 Bytes

Versions: 10

Compression:

Stored size: 322 Bytes

Contents

Integer division rounds towards zero; remainders are always positive regardless of the signs of the numbers.

?a;
?b;
!!('Sum:              a+b=',a+b);
!!('Difference:       a-b=',a-b);
!!('Product:          a*b=',a*b);
!!('Integer quotient: a\b=',a\b);
!!('Remainder:        a|b=',a|b);
!!('Exponentiation:   a^b=',a^b);

Version data entries

10 entries across 7 versions & 1 rubygems

Version Path
zettacode-0.1.7 files.zettacode/arithmetic.integer/fermat.txt
zettacode-0.1.6 files.zettacode/arithmetic.integer/fermat.txt
zettacode-0.1.6 files.zettacode2/arithmetic.integer/fermat.txt
zettacode-0.1.5 files.zettacode/arithmetic.integer/fermat.txt
zettacode-0.1.5 files.zettacode2/arithmetic.integer/fermat.txt
zettacode-0.1.4 files.zettacode/arithmetic.integer/fermat.txt
zettacode-0.1.4 files.zettacode2/arithmetic.integer/fermat.txt
zettacode-0.1.3 files.zettacode/arithmetic.integer/fermat.txt
zettacode-0.1.2 files.zettacode/arithmetic.integer/fermat.txt
zettacode-0.1.1 zettacode.files/arithmetic.integer/fermat.txt