AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de valores numéricos / Funciones de valores binarios
  • Bitwise operation
  • 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, BinaryXOR is kept for backward compatibility. This function has been replaced with BitwiseXOR.
Returns the result of the bitwise exclusive OR operation performed between two values.
Example
// Get the result of the logical exclusive OR operation
ResBitwiseXOR = BitwiseXOR(6, 6)  // Returns 0
ResBitwiseXOR = BitwiseXOR(6, 2)  // Returns 4
Syntax
<Result> = BitwiseXOR(<Value 1> , <Value 2>)
<Result>: Integer
Result of the logical exclusive OR operation.
<Value 1>: Integer
First value to be evaluated.
<Value 2>: Integer
Second value to be evaluated.
Remarks

Bitwise operation

BitwiseXOR performs the bitwise operation on <Value 1> and <Value 2> based on the following table:
01
001
110

Bitwise operator

  • BitwiseXOR is equivalent to the || bitwise operator for 4-byte integers. For more details, see Bitwise operators.
  • BitwiseXOR 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: wd290mat.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 29/08/2023

Señalar un error o enviar una sugerencia | Ayuda local