Operator Mod= (Modulus And Assign)

Divides a value and assigns the remainder to a variable

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

Usage
	lhs Mod= rhs

Parameters
	lhs
		The variable to assign to.
	rhs
		The value to divide lhs by.

Description
	This operator divides two values of KeyPgIntegerInteger type and assigns the 
	remainder to its left-hand side (lhs) variable. It is functionally 
	equivalent to:
		lhs = lhs KeyPgOpModulusMod rhs

	This operator can be overloaded for user-defined types as a member 
	KeyPgOperatorOperator using the appropriate syntax.

	Note: Similarly to the operator '=[>]' (assign), the alternative symbol 
	'Mod=>' can be also used.

Example
	Dim n As Integer
	n = 11
	n Mod= 3
	'' The result is 2
	Print n
	Sleep

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

Differences from QB
	* New to FreeBASIC

See also
	* KeyPgOpModulusOperator Mod (Modulus)
	* CatPgMathMathematical Functions

