Conversion between binary and decimal
1. Convert binary 101 to decimal
First mark 101 from right to left, starting with 0, as follows
Binary 1 0 1
Mark 2 1 0
Then binary 101 is converted to decimal, which is calculated as follows
2. Convert decimal 5 to binary
Remove with 2, take the remainder, as follows
And then write from the bottom up, and the result is 101.