User Tools

Site Tools


xrpl:div

This is an old revision of the document!


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 
xrpl/div.1551649369.txt.gz ยท Last modified: 2025/02/14 14:56 (external edit)