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 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, BinaryAND is kept for backward compatibility. This function has been replaced with BitwiseAND.
Returns the result of the bitwise AND between two values.
Example
// Retrieve the result of a logical AND
ResBitwiseAND = BitwiseAND(6, 6)  // Returns 6
ResBitwiseAND = BitwiseAND(6, 2)  // Returns 2
Syntax
<Result> = BitwiseAND(<Value 1> , <Value 2>)
<Result>: Integer
Result of logical AND.
<Value 1>: Integer
First value to test.
<Value 2>: Integer
Second value to test.
Remarks

Bitwise calculation

BitwiseAND performs the bitwise calculation between <Value1> and <Value2> based on the following table:
01
000
101

Bitwise operator

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

Last update: 08/30/2023

Send a report | Local help