Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
9
Task/Twos-complement/Rebol/twos-complement.rebol
Normal file
9
Task/Twos-complement/Rebol/twos-complement.rebol
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
negate 0 ;== 0
|
||||
negate -1 ;== 1
|
||||
negate 1:0:0 ;== -1:0:0
|
||||
negate -1x2 ;== 1x-2
|
||||
negate $100 ;== -$100
|
||||
;; or
|
||||
1 + complement -42 ;== 42
|
||||
complement true ;== false
|
||||
complement 2#{0000 0011} ;== 2#{1111 1100}
|
||||
Loading…
Add table
Add a link
Reference in a new issue