This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:mod [2013/01/18 06:16] – grauniad | crpl:docs:mod [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | + | |
<- [[crpl: | <- [[crpl: | ||
===== mod ===== | ===== mod ===== | ||
- | ^Arguments^Result^Notation^ | + | <-a <-b mod ->result |
- | |Two items on the stack|The division remainder of two items |'' | + | |
=== Description === | === Description === | ||
Calculates the remainder of the two arguments and pushes the result on the stack. | Calculates the remainder of the two arguments and pushes the result on the stack. | ||
=== Examples === | === Examples === | ||
- | < | + | < |
+ | ShowTraceLog | ||
+ | 10 mod(6) Trace | ||
+ | # Displays 4 | ||
+ | </ | ||