Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
IR remote for the Boe-bot — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
Learn with BlocklyProp
IR remote for the Boe-bot
jimrm
Posts:
2
2007-02-16 01:00
edited 2007-02-16 01:12
in
Learn with BlocklyProp
IR remote for the Boe-bot
On page 99 what does the line below mean.
mute = ~ mute
Comments
allanlane5
Posts:
3,815
2007-02-16 01:12
edited 2007-02-16 01:12
As it says, in the first entry in the help file (hint, hint), that is an Invert Bits operator.
So, if 'mute' has %01100100, ~ mute will have 10011011.
This is also known as "ones complement".
Sign In
or
Register
to comment.
Comments
So, if 'mute' has %01100100, ~ mute will have 10011011.
This is also known as "ones complement".