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 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, BinaryNOT is kept for backward compatibility. This function has been replaced with BitwiseNOT.
Returns the result of the bitwise logical NOT operation of 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
ResBitwiseNOT = BitwiseNOT(6)  // Returns -7
ResBitwiseNOT = BitwiseNOT(2)  // Returns -3
Syntax
<Result> = BitwiseNOT(<Value>)
<Result>: Integer
Result of the logical NOT operation.
<Value>: Integer
Value to test.
Remarks

Bitwise calculation

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

Bitwise operator

BitwiseNOT is equivalent to the ~ bitwise operator. For more details, see Bitwise operators.
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