Div

This function returns the dividend of two whole numbers.

Function Group Execution Windows Embedded Thin Client Mobile Access
Div Arithmetic Synchronous Supported Supported Supported Supported

Syntax

Web Studio Help s2fr function arithmetic div.xml d63729e87 Div

  Div( numNumerator, numDenominator )  
numNumerator
The numerator of the division operation. Please note that if you specify a decimal value, then it will be truncated.
numDenominator
The denominator of the division operation. Please note that if you specify a decimal value, then it will be truncated.

Returned value

This function returns the dividend only as a whole number. The remainder is omitted.

Tip: To get the remainder instead of the dividend, use the function Mod.

Examples

Tag Name Expression
numValue Div( 100, 8 ) // Returns the value 12
numValue Div( 16, 4 ) // Returns the value 4
numValue Div( 100, 2.5 ) // Returns the value 50

Div