Div

Div is a built-in scripting function that gets the dividend of two specified numeric values.

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

Syntax

Div( numNumerator, numDenominator )
numNumerator
The numerator of the division operation.
numDenominator
The denominator of the division operation.

Returned value

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

Tip: Use the Mod function to get the remainder instead of the dividend.

Examples

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