Partager via


Integer Division Operator (\)

Divides two numbers and returns an integer result.

result = number1\number2

Arguments

  • result
    Any numeric variable.

  • number1
    Any numeric expression.

  • number2
    Any numeric expression.

Remarks

The result is the integer quotient of number1 divided by number2. The integer quotient discards any remainder and retains only the integer portion.

Before division is performed, numeric expressions are rounded to Byte, Integer, or Long subtype expressions.

If any expression is Null, result is also Null. Any expression that is Empty is treated as 0.

For information about obtaining the remainder, see Mod Operator.

The Division operator (/) returns the full quotient, retaining the remainder in the fractional portion.

Requirements

Version 1

See Also

Reference

Multiplication Operator (*) (VBScript)

Division Operator (/) (VBScript)

Arithmetic Operators

Operator Precedence (VBScript)

Other Resources

Operator Summary (VBScript)

Change History

Date

History

Reason

September 2009

Added information to Remarks.

Information enhancement.