<- PRPL reference <- Math

div

ArgumentsResultNotation
number number number [number number- number]

Description

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

Examples

trace(5 div(4)) #prints '1'. Both arguments are integers so division is integer division 
trace(5 div(4.0)) #prints '1.2'. Handled as floating point division 
trace(5 div(4 asfloat)) #prints '1.2'. Handled as floating point division