118 in Binary

118 in binary is 111 0110 (1110110).

Result 1110110.

Binary (base 2)111 0110

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    118 ÷ 2590
    59 ÷ 2291
    29 ÷ 2141
    14 ÷ 270
    7 ÷ 231
    3 ÷ 211
    1 ÷ 201
  2. Read the remainders from bottom to top: 111 0110
binary (base 2)111 0110
octal (base 8)166
decimal (base 10)118
hexadecimal (base 16)76
Bits needed7 bits (fits in 1 byte)
8-bit form0111 0110
16-bit form0000 0000 0111 0110
32-bit form0000 0000 0000 0000 0000 0000 0111 0110

Quick method for 118

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

118 in other forms

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

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

118 in binary: questions

What is 118 in binary?

1110110.

What is 118 in hex?

76.

How many bits is 118?

7.