# Binary ```plaintext --------- | (oo) | | -- | --------- | operating system | \--------\ \--------\ --------- | 3 steps forward | | turn right | | jump up and down like a silly person. | | sit down | | code -> machine language | (compiler) | EXECUTE | Beeep 1 Booop 0 ------------------------------------------- /\/\/\/\/\/\/\/\/\/\/\/\/ ------------------------------------------- elenco electric circuits | switch -> wire ---> resistors ---> battery | |-- ---> wire --- wire ---- bulb----| | | ------------------------------------| states * on: 1 * off: 0 ``` numbers. -infinity,-2,-1,0,1,2,3,4,5,6,7,8,9,10 ........................ infinity 10^0=1 ----------- |100|10| 1| ----------- | 1| 3| 7| one hundred thirty seven ^ | (0,1,2,3,4,5,6,7,8,9) base(10) numbering systems. = (7 * 10^0) + (3 * 10^1) + (1 * 10^2) = (7 * 1) + (3 * 10) + (1 * 100) = (7) + (30) + (100) = 137 base(2) === (0,1) |2^3|2^2|2^1|2^0| | 8| 4| 2| 1| ----------------- | 0| 0| 0| 0| = (0 * 1) + (0 * 2) + (0 * 4) + (0 * 8) = ( 0 ) + ( 0 ) + ( 0 ) + ( 0 ) = 0 |2^3|2^2|2^1|2^0| | 8| 4| 2| 1| ----------------- | 0| 0| 0| 1| = (1 * 1) + (0 * 2) + (0 * 4) + (0 * 8) = ( 1 ) + ( 0 ) + ( 0 ) + ( 0 ) = 1 === 0x0001 |2^3|2^2|2^1|2^0| | 8| 4| 2| 1| ----------------- | 0| 0| 1| 0| = (0 * 1) + (1 * 2) + (0 * 4) + (0 * 8) = ( 0 ) + ( 2 ) + ( 0 ) + ( 0 ) = 2 (base 10) == 0x0010 (base2)