Answer:
Binary: 11111111
Octal: 377
Hexadecimal: FF
Step-by-step explanation:
Given
Decimal Number: 255
Required
Convert to
- Binary
- Octal
- Hexadecimal
Converting to binary...
To convert to binary, we take note of the remainder when the quotient is divided by 2 until the quotient becomes 0;
255/2 = 127 R 1
127/2 = 63 R 1
63/2 = 31 R 1
31/2 = 15 R 1
15/2 = 7 R 1
7/2 = 3 R 1
3/2 = 1 R 1
1/2 = 0 R 1
By writing the remainder from bottom to top, the binary equivalent is 11111111
Converting to octal...
To convert to octal, we take note of the remainder when the quotient is divided by 8 until the quotient becomes 0;
255/8 = 31 R 7
31/8 = 3 R 7
3/8 = 0 R 3
By writing the remainder from bottom to top, the octal equivalent is 377
Converting to hexadecimal...
To convert to hexadecimal, we take note of the remainder when the quotient is divided by 16 until the quotient becomes 0;
255/16 = 15 R 15
15/16 = 0 R 15
In hexadecimal, 15 is represented by F; So, the above division can be rewritten as
255/16 = 15 R F
15/16 = 0 R F
By writing the remainder from bottom to top, the hexadecimal equivalent is FF