Division operator (LotusScript® Language)

Divides two numbers and returns a floating-point result.


numExpr1 / numExpr2


numExpr1, numExpr2

Any numeric expressions. An EMPTY operand is considered a 0.

Return value

The resulting data type is a Double or a Variant of Double.

If either or both operands are NULL expressions, the result is a NULL.


This example contrasts ordinary division with integer division. Integer division rounds, divides, and then drops the fractional part. Because the operands are rounded before division, the result may differ from the integer part of an ordinary division operation.

Print 8 / 5                      ' Prints 1.6
Print 8 \ 5                      ' Prints 1
Print 16.9 / 5.6                 ' Prints 3.01785714285714
Print 16.9 \ 5.6                 ' Prints 2