What does the binary representation of 1 to 10 look like?
The binary representation of 1 to 10 is as follows:
(1)10=(1)2 // Decimal 1 = Binary 1, the same below
(2)10=(10)2
(3)10=(11)2
(4) 10=(100)2 // Decimal 4 = Binary 100, the same as below
(5)10=(101)2
(6)10=(110)2
(7)10=(111) 2
(8)10=(1000)2
(9)10=(1001)2
(10)10=(1010)2
About decimal system To convert to binary, you can use division by base and remainder method. Taking 35 as an example, as shown in the figure below:
, the final binary number is 100011.
For more related tutorials, please pay attention to PHP Chinese website!
The above is the detailed content of What does the binary representation of 1 to 10 look like?. For more information, please follow other related articles on the PHP Chinese website!