ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Numeric values functions / Bitwise functions
  • Bitwise calculation
  • Bitwise operator
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Warning
From version 2024, BinaryNOT is kept for backward compatibility. This function has been replaced with BitwiseNOT.
Returns the result of the bitwise logical NOT operation of a value.
Reminder: The logical NOT operation is equivalent to the "Complement to one". The logical negation is applied to ALL the bits of the value.
Example
// Retrieve the result of a logical NOT
ResBitwiseNOT = BitwiseNOT(6)  // Returns -7
ResBitwiseNOT = BitwiseNOT(2)  // Returns -3
Syntax
<Result> = BitwiseNOT(<Value>)
<Result>: Integer
Result of the logical NOT operation.
<Value>: Integer
Value to test.
Remarks

Bitwise calculation

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

Bitwise operator

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

Last update: 08/29/2023

Send a report | Local help