Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.56 KB

bitwise-not-ssis-expression.md

File metadata and controls

59 lines (39 loc) · 1.56 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
~ (Bitwise Not) (SSIS Expression)
~ (Bitwise Not) (SSIS Expression)
chugugrace
chugu
03/01/2017
sql
integration-services
conceptual
bitwise NOT (~)
~ (bitwise NOT)

~ (Bitwise Not) (SSIS Expression)

[!INCLUDEsqlserver-ssis]

Performs a bitwise negation of an integer. This operator can be applied to signed and unsigned integer data types.

Syntax

  
~integer_expression  
  

Arguments

integer_expression
Is any valid expression of an integer data type. integer_expression is an integer that is transformed into a binary number for the bitwise operation. For more information, see Integration Services Data Types.

Result Types

Returns the data type of integer_expression.

Remarks

None

Expression Examples

This example performs a bitwise ~ (NOT) operation on the number 170 (0000 0000 1010 1010). The number is a signed integer.

  
~ 170  

The expression evaluates to -170 (1111111101010101).

0000000010101010

----------------------

1111111101010101

See Also

Operator Precedence and Associativity
Operators (SSIS Expression)