This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
crpl:docs:div [2013/01/14 19:02] – created virgilw | crpl:docs:div [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | TODO | + | <- [[crpl: |
+ | ===== div ===== | ||
+ | |||
+ | <-a <-b div -> | ||
+ | |||
+ | === Description === | ||
+ | Divides the two arguments together and pushes the result on the stack. | ||
+ | |||
+ | Be very careful! Dividing two integers returns another integer | ||
+ | |||
+ | === Examples === | ||
+ | <code 4RPL> | ||
+ | ClearTraceLog | ||
+ | ShowTraceLog | ||
+ | 5 4 div Trace #1 | ||
+ | 5 4.0 div Trace #1.25 | ||
+ | -5 4 div Trace #-1 | ||
+ | </ |