"MODU" Modulo Arithmetic ExtensionΒΆ

Fingerprint ID:0x4d4f4455

This fingerprint, from Cat’s Eye Technologies, implements various modulo behaviors with negative divisor or dividend. It provides the following commands:

M : a b(a mod b)
A remainder is defined as a - floor(a/b). Same to % behavior of PyFunge.
R : a b(a mod b)
A remainder has same sign with dividend. A sign of divisor is ignored.
U : a b(a mod b)
A remainder ignores a sign of divisor and dividend.

Every commands pushes 0 if divisor is zero.

Previous topic

"MODE" Funge-98 Standard Modes

Next topic

"NCRS" Ncurses extension

This Page

Quick search