contents.gifindex.gifprev1.gifnext1.gif

/ Operator

Purpose

Used to divide two floating-point numbers.

Syntax

result = operand1 / operand2

Notes

The operands can be any numeric expression. The data type of result is usually a Double or a Variant of VarType 5 (Double). The following are exceptions to this rule:

traxhelp00090000.gif When both operands are Integer or Single expressions, result is a Single unless it overflows its legal range, in which case, result is a Double.

traxhelp00090000.gif When both operands are Variant expressions of VarType 2 (Integer) or VarType 4 (Single), result is a Variant of VarType 4 (Single) unless it overflows its legal range, in which case, result is a Variant of VarType 5 (Double).

If one or both operands are Null expressions, result is a Null. Any operand that is Empty (VarType 0) is treated as 0.

Example

This example divides 100,000 units among seven people and returns 14,285.7142857143.

X = 100000 / 7