122 in Binary

122 in binary is 111 1010 (1111010).

Result 1111010.

Binary (base 2)111 1010

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    122 ÷ 2610
    61 ÷ 2301
    30 ÷ 2150
    15 ÷ 271
    7 ÷ 231
    3 ÷ 211
    1 ÷ 201
  2. Read the remainders from bottom to top: 111 1010
binary (base 2)111 1010
octal (base 8)172
decimal (base 10)122
hexadecimal (base 16)7A
Bits needed7 bits (fits in 1 byte)
8-bit form0111 1010
16-bit form0000 0000 0111 1010
32-bit form0000 0000 0000 0000 0000 0000 0111 1010

Quick method for 122

Find the powers of 2 that add up to 122: 64 + 32 + 16 + 8 + 2. Put a 1 in those places and 0 elsewhere: 1111010.

122 in other forms

  • Place values: 64 + 32 + 16 + 8 + 2 = 122
  • Hex: 7A
  • Octal: 172
  • 7 bits — fits in one byte
  • 5 one-bits (odd parity)
  • Padded: 0111 1010
  • 16-bit: 0000 0000 0111 1010
  • One's complement (8-bit): 1000 0101
  • Between 26 = 64 and 27 = 128
  • −122 in 8-bit two's complement: 1000 0110
  • ASCII: “z” — ASCII table

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

122 in binary: questions

What is 122 in binary?

1111010.

What is 122 in hex?

7A.

How many bits is 122?

7.