NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

/ Operator

Used to divide two numbers and return a floating-point result.

Arguments

Part
Description
result
Required; any numeric variable.
number1
Required; any numeric expression.
number2
Required; any numeric expression.

Remarks

The data type of result is usually a Double or a Doubleobject. The following are exceptions to this rule:

If Then result is
Both expressions are Byte, Integer, or Single expressions, a Single, if one of the expressions is a Single, else the result is a Double. If it overflows its legal range, a Run-time error will occur..
Both expressions are Byte, Integer, or Single objects, a Single object unless it overflows its legal range; in which case a Run-time error will occur.
Division involves a Decimal and any other data type, a Decimal data type.

If one or both expressions arestated as Nothing, a Variable Not Set error occurs. Any expression that is Empty is treated as 0.

See Also

Example

\= Operator | Arithmetic Operators | Operator Precedence in Visual Basic | Operator Summary