ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Numeric values functions / Bitwise functions
  • Bitwise operation
  • Bitwise operator
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
From version 2024, BinaryNOT is kept for backward compatibility. This function has been replaced with BitwiseNOT.
Returns the result of a bitwise NOT operation performed on a value.
Reminder The logical NOT operation is equivalent to "One's complement". The logical negation is applied to ALL the bits of the value.
Example
// Récupération du NON logique
ResNONBinaire = BitwiseNOT(6)  // Renvoie -7
ResNONBinaire = BitwiseNOT(2)  // Renvoie -3
Syntax
<Result> = BitwiseNOT(<Value>)
<Result>: Integer
Result of the logical NOT operation.
<Value>: Integer
Value to evaluate.
Remarks

Bitwise operation

BitwiseNOT performs the bitwise operation on <Value> based on the following table:
Value01
Result10

Bitwise operator

BitwiseNOT is equivalent to the ~ bitwise operator. For more details, see Bitwise operators.
Component: wd300mat.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help