ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Numeric values management functions / Binary values management functions
  • Bitwise calculation
  • Binary 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
Returns the result of a logical NOT (bit by bit) performed on 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
ResBinaryNOT = BinaryNOT(6)  // Returns -7
ResBinaryNOT = BinaryNOT(2)  // Returns -3
Syntax
<Result> = BinaryNOT(<Value>)
<Result>: Integer
Result of logical NOT.
<Value>: Integer
Value to test.
Remarks

Bitwise calculation

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

Binary operator

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

Last update: 05/26/2022

Send a report | Local help