1. Hexadecimal to decimal:
2. Binary to decimal:
>>> int('10100111110',2)
1342
3. Octonary to decimal:
4. Decimal to hexadecimal:
5. Binary to hexadecimal:
>>> hex(int('101010',2))
'0x2a'
6. Octonary to hexadecimal:
>>> hex(int('17',8))
'0xf'
7. Decimal to binary:
8. Hexadecimal to binary:
>>> bin(int('ff',16))
'0b11111111'
9. Octonary to binary:
>>> bin(int('17',8))
'0b1111'
10. Binary to octonary:
11. Decimal to octonary:
12. Hexadecimal to octonary:
Author:
Junbin Huang
Words:
84
Share:
Released under CC BY-NC 4.0