Div Operator

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.

Syntax

Operator construct

expression_1 Div expression_2

Function construct

Div ( expression_1, expression_2 [ , expression_3 ] )

Parts

expression_1
Mandatory numeric expression, also known as the numerator.
expression_2
Mandatory numeric expression, also known as the denominator.
expression_3
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.

Instructions

TODO

Data types

If the two expressions are integers, then they automatically change to Real, and the result is Real.

Examples

TODO

See also