\ Operator

Used to perform Integer division between two numbers.

# Notes

# Syntax

result=expression1 \ expression2

Part | Type | Description
--- | --- | ---
result | Number | The Integer division of expression1 and expression2.
expression1 | Number | Any numeric expression.
expression2 | Number | Any numeric expression.

Use this operator when you require division that does not consider the decimal portion of the expressions.

You can use Operator_IntegerDivide to define the \ operator for classes.

# Examples

This example stores the result of a division of two numbers in a variable:

Dim x as Integer
x=50.56\30.34 //x is 1

# See Also

/, Mod operators; Operator_IntegerDivide function.