<- CRPL reference <- Math Commands

div

<-a <-b div ->result

Description

Divides the two arguments together and pushes the result on the stack.

Be very careful! Dividing two integers returns another integer

Examples

ClearTraceLog
ShowTraceLog
5 4 div Trace #1
5 4.0 div Trace #1.25
-5 4 div Trace #-1