ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Numeric values management functions / Binary values management 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
Returns the result of the (bitwise) logical exclusive OR between two values.
Example
// Retrieve the result of a logical exclusive OR
ResBinaryXOR = BinaryXOR(6, 6)  // Returns 0
ResBinaryXOR = BinaryXOR(6, 2)  // Returns 4
Syntax
<Result> = BinaryXOR(<Value 1> , <Value 2>)
<Result>: Integer
Result of the logical exclusive OR.
<Value 1>: Integer
First value to test.
<Value 2>: Integer
Second value to test.
Remarks

Bitwise calculation

BinaryXOR performs the bitwise calculation between <Value 1> and <Value 2> based on the following table:
01
001
110

Bitwise operator

  • BinaryXOR is equivalent to the || bitwise operator for 4-byte integers. For more details, see Bitwise operators.
  • BinaryXOR returns a precise result when you pass 4-byte integers. Passing 8-byte integers causes an overflow.
  • The || operator can be used to perform bitwise operations between 8-byte integers.
Component: wd280mat.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/26/2023

Send a report | Local help