User Tools

Site Tools


prpl:div

<- 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 
prpl/div.txt · Last modified: 2016/12/02 18:33 by 127.0.0.1