NotInt
Result = NotInt(Value)
 
Parameters:

    Value = Integer value
Returns:

    Result
 

      The NotInt function performs a bitwise Not operation upon a given integer value and returns the result.


     Not Rule

      Not toggles each bit within an integer value. So set bits (bits that are 1) come out as zero, and zero bits become set.




FACTS:


      * All bits that were set are cleared and all cleared bits are set.



Mini Tutorial:


      Showing the use of the NotInt function


  
  Print Bin$(42)
  Print Bin$(NotInt(42))
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

  
  %00000000000000000000000000101010
  %11111111111111111111111111010101
  

 
Related Info: And | Not | Operators | Or | Xor :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com