mod

From The K Language Wiki
Revision as of 10:34, 11 July 2021 by Tosh (talk | contribs) (Created page with "{{primitive|x!y}} The '''Mod''', '''Modulo''', '''Remainder''' or '''Residue''' (see [https://aplwiki.com/wiki/Residue APL])) function, denoted by <code>!</code>, is used for...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Mod
x!y

The Mod, Modulo, Remainder or Residue (see APL)) function, denoted by !, is used for modulo in K.

  3!12
0

  3!11
2

  5!15
0

  3!1 2 3 4 5 6 7 8 9 10 11 12
1 2 0 1 2 0 1 2 0 1 2 0

History

JohnEarnest on the order of arguments for mod in K