Divides one number by a second number, if possible. But if division is not possible, then the result is zero (default) or a value that you supply.
expression_1 Div expression_2
Div ( expression_1, expression_2 [ , expression_3 ] )
- Mandatory numeric expression, also known as the numerator.
- Mandatory numeric expression, also known as the denominator.
- Optional numeric expression that becomes the result if division is not possible. It is available only in the function construct. If not supplied, then the default is zero.
If the two expressions are integers, then they automatically change to
Real, and the result is