Maptitude GISDK Help

BitwiseNot()

Summary

Computes the bitwise NOT of an integer.

 

Syntax

int = BitwiseNot(integer int1)

 

Argument Contents
int1 An integer

 

Returns

An integer that is the bitwise NOT of the integer argument.

 

Notes

Examples

int = BitwiseNot(1) // int = -2: all but the rightmost bit set to 1

int = BitwiseNot(0) // int = -1: all bits set to 1

int = BitwiseNot(-1) // int = 0: all bits set to 0

 

See Also

Function Summary
BitwiseAnd() Computes the bitwise AND of two integers
BitwiseOr() Computes the bitwise OR of two integers
BitwiseXor() Computes the bitwise exclusive OR of an integer
ShiftLeft() Does a left arithmetic shift of the bits in an integer
ShiftRight() Does a right arithmetic shift of the bits in an integer

 

 

©2025 Caliper Corporation www.caliper.com