To convert the decimal number 128 to octal, we divide the number by 8 repeatedly and record the remainders.
Hereβs how it works:
- Divide 128 by 8:
128 Γ· 8 = 16 with a remainder of 0.
- Divide 16 by 8:
16 Γ· 8 = 2 with a remainder of 0.
- Divide 2 by 8:
2 Γ· 8 = 0 with a remainder of 2.
Now, we write the remainders in reverse order:
200
So, the octal representation of 128 is
200.