This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
crpl:docs:div [2013/01/18 01:16] – grauniad | crpl:docs:div [2015/03/19 05:25] – Integer division warren | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | ||
<- [[crpl: | <- [[crpl: | ||
===== div ===== | ===== div ===== | ||
Line 9: | Line 8: | ||
=== Description === | === Description === | ||
Divides the two arguments together and pushes the result on the stack. | Divides the two arguments together and pushes the result on the stack. | ||
+ | |||
+ | Be very careful! Dividing two integers returns another integer | ||
+ | |||
=== Examples === | === Examples === | ||
- | < | + | < |
+ | ClearTraceLog | ||
+ | ShowTraceLog | ||
+ | 5 4 div Trace #1 | ||
+ | 5 4.0 div Trace #1.25 | ||
+ | -5 4 div Trace #-1 | ||
+ | </ | ||