CS211 Week6 Slides
CS211 Week6 Slides
Week 6!
Mini Exam 1:
Thurs, Jan 30 th
• To convert a binary
number to decimal,
multiply each digit by
its corresponding
power of 2, starting
from the rightmost
digit as 2^0, and then
add the results.
DECIMAL ->
BINARY
https://www.geeks
forgeeks.org/pyth
on-bitwise-operat
ors/
BITWISE "OR"
OPERATOR
• Digits 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F