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 AND (bit by bit) between two values.
Example
// Retrieve the result of a logical AND
ResBinaryAND = BinaryAND(6, 6)  // Returns 6
ResBinaryAND = BinaryAND(6, 2)  // Returns 2
Syntax
<Result> = BinaryAND(<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

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

Binary operator

  • BinaryAND is equivalent to the & binary operator. For more details, see Binary operators.
  • The & binary operator is used to perform operations on 8-byte integers.
Component: wd270mat.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/03/2022

Send a report | Local help