BigIntegerStatic: Negate

Negate

Returns the opposite signed value of this BigInteger instance.



 Public Function Negate(
	  ByVal x As BigInteger ) As BigInteger

Parameters

x
[ByVal] BigInteger. The value to be negated.

Return Values

BigInteger -  Returns a BigInteger instance containing the opposite signed value.

Remarks

Negative values are represented as a Twos Complement number, unlike other systems used to represent a negative value. Any negation requires the Twos Complement algorithm to be applied to the number. This keeps in step with how users of VB already deal with negative numbers, helping to ease the transition to using BigInteger values.

Values of Nothing will be treated as zero.

See Also

Project VBCorLib Overview Class BigIntegerStatic Overview BigIntegerStatic Properties BigIntegerStatic Methods Multiply NotBits