Operator / (Divide)
 
Divides two numeric expressions

Syntax
Usage

result = lhs
/ rhs

Parameters

lhs
The left-hand side dividend expression.
rhs
The right-hand side divisor expression.

Return Value

Returns the quotient of a dividend and divisor.

Description

Operator / (Divide) returns the quotient of a dividend and divisor.

Neither operand is modified in any way.

This operator can be overloaded to accept user-defined types.

Example

Dim n As Double
Print n / 5
n = 6 / 2.3
Print n
Sleep

Output:
0
2.608695652173913

Dialect Differences

  • In the -lang qb dialect, this operator cannot be overloaded.

Differences from QB

  • None

See also