Div
- Last UpdatedAug 14, 2026
- 1 minute read
Div returns the dividend of two whole numbers.
|
Group |
Sync / Async Exec |
String Exp? |
Windows Support |
Windows Embedded Support |
IoT View Support |
Thin Client Support |
Mobile Access Support |
|
Arithmetic |
Sync |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Syntax
Div(numNumerator, numDenominator)
numNumerator
The numerator of the division operation. Decimal value will be truncated to whole numbers.
numDenominator
The denominator of the division operation. Decimal value will be truncated to whole numbers.
Return value
This function returns the dividend only as a whole number. The remainder is omitted, but can be found using the Mod function.
Examples
As used in a Math worksheet:
|
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 |