Operator - (Negate)

Changes the sign of a numeric expression

Syntax
	KeyPgDeclareDeclare KeyPgOperatorOperator - ( KeyPgByrefByRef rhs KeyPgAsAs KeyPgIntegerInteger ) KeyPgAsAs KeyPgIntegerInteger
	KeyPgDeclareDeclare KeyPgOperatorOperator - ( KeyPgByrefByRef rhs KeyPgAsAs KeyPgSingleSingle ) KeyPgAsAs KeyPgSingleSingle
	KeyPgDeclareDeclare KeyPgOperatorOperator - ( KeyPgByrefByRef rhs KeyPgAsAs KeyPgDoubleDouble ) KeyPgAsAs KeyPgDoubleDouble

Usage
	result = - rhs

Parameters
	rhs
		The right-hand side numeric expression to negate.

Return Value
	Returns the negative of the expression.

Description
	Operator - (Negate) is a unary operator that negates the value of its 
	operand.

	The operand is not modified in any way.

	This operator can be overloaded for user-defined types.

Example
	Dim n As LongInt
	Print -5
	n = 65432568459
	n = - n
	Print n
	Sleep

Output:

	-5
	-65432568459

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

Differences from QB
	* None

See also
	* CatPgMathMathematical Functions

