This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:div [2014/10/01 19:02] – external edit 127.0.0.1 | crpl:docs:div [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | ||
<- [[crpl: | <- [[crpl: | ||
===== div ===== | ===== div ===== | ||
- | ^Arguments^Result^Notation^ | + | <-a <-b div ->result |
- | |Two items on the stack|The quotient of two items |'' | + | |
=== 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 | ||
+ | </ | ||