Home>Article> What does the binary representation of 1 to 10 look like?

What does the binary representation of 1 to 10 look like?

angryTom
angryTom Original
2020-03-03 17:11:04 81394browse

What does the binary representation of 1 to 10 look like?

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 usedivision by base and remainder method. Taking 35 as an example, as shown in the figure below:

What does the binary representation of 1 to 10 look like?

, the final binary number is 100011.

For more related tutorials, please pay attention toPHP 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is a mirror? Next article:What is a mirror?