













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














32 ) + (0 x 10) + (6 x 10
10 ) + (1 x 10)
Converting from Decimal to Binary Given a decimal number N:^ •^ List increasing powers of 2 from right to left until ≥ N^ •^ From left to right, ask is that (power of 2) ≤ N?^ –^ If^ YES , put a 1 below and subtract that power from N^ –^ If^ NO , put a 0 below and keep goingExample for 13:
5 1 0
Base 10 Base 16 Base 2^0
(^00001 1 00012 2 00103 3 00114 4 01005 5 01016 6 01107 7 01118 8 10009 9 100110) A (^101011) B (^101112) C (^110013) D (^110114) E (^111015) F 1111
Base 10 Base 16 Base 2^0
(^00001 1 00012 2 00103 3 00114 4 01005 5 01016 6 01107 7 01118 8 10009 9 100110) A (^101011) B (^101112) C (^110013) D (^110114) E (^111015) F 1111 ? 15
0b0, 1^ 0b1, 2
0b10, etc.
-^ English Letters: BJC
0x424A43, yay
0x
-^ Emoticons:
😃^ 0x0,^ 😞^ 0x1,
😎^ 0x2,^ 😇^ 0x3,
😈^ 0x4,^ 🙋^ 0x
-39^ [floating point]
-^ Program needs to know how to interpret bits