Description

Performs a bitwise logical NOT operation.

Returns

A number; the bitwise NOT of a long integer.

Category

Mathematical functions

Function syntax

BitNot(number)

See also

BitAndBitOrBitXor

Parameters

Parameter

Description

number

32-bit signed integer

Usage

Bit functions operate on 32-bit signed integers, in the range -2147483648 - 2147483647.

Example

<h3>BitNot Example</h3>
<p>Returns the bitwise NOT of a long integer.</p>

<p>BitNot(0): <cfoutput>#BitNot(0)#</cfoutput></p>
<p>BitNot(255): <cfoutput>#BitNot(255)#</cfoutput></p>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy