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 |
Div( numNumerator, numDenominator )
This function returns the dividend only as a whole number. The remainder is omitted.
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 |