Operator \ (Integer Divide)

Divides two KeyPgIntegerInteger expressions

Syntax
	KeyPgDeclareDeclare KeyPgOperatorOperator \ ( KeyPgByrefByRef lhs KeyPgAsAs KeyPgIntegerInteger, KeyPgByrefByRef rhs KeyPgAsAs KeyPgIntegerInteger ) KeyPgAsAs 
	KeyPgIntegerInteger
	KeyPgDeclareDeclare KeyPgOperatorOperator \ ( KeyPgByrefByRef lhs KeyPgAsAs KeyPgUintegerUInteger, KeyPgByrefByRef rhs KeyPgAsAs KeyPgUintegerUInteger ) KeyPgAsAs 
	KeyPgUintegerUInteger

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 an KeyPgIntegerInteger dividend and divisor.

Description
	Operator \ (Integer division) divides two KeyPgIntegerInteger expressions and 
	returns the result. Float numeric values are converted to KeyPgIntegerInteger by 
	rounding up or down, and the fractional part of the resulting quotient 
	is truncated.

	If the divisor (rhs) is zero (0), a division by zero error (crash) will 
	be raised.

	Neither of the operands are modified in any way.

	This operator can be overloaded for user-defined types.

Example
	Dim n As Double
	Print n \ 5
	n = 7 \ 2.6  '' => 7 \ 3  => 2.33333  => 2
	Print n
	n = 7 \ 2.4  '' => 7 \ 2 => 3.5 => 3
	Print n
	Sleep

Output:

	0
	2
	3

Dialect Differences
	* In the CompilerOptlang-lang qb dialect, this operator cannot be overloaded.

Differences from QB
	* None

See also
	* KeyPgOpDivideOperator / (Floating-Point Divide)
	* KeyPgOpModulusOperator Mod (Modulus)
	* CatPgMathMathematical Functions

