1. Home
  2. Computing & Technology
  3. Java
photo of Paul Leahy
Paul's Java Blog

By Paul Leahy, About.com Guide to Java

Java Term of the Week: Octal

Saturday September 20, 2008

Following on with the numbering system theme it's time to look at octal numbers. Unlike denary numbers they only use the digits 0,1,2,3,4,5,6,7 and have a base of 8.

What this means is that to represent a value of 8 octal numbers use two digits 10. If that seems hard to understand think about the denary system you're used to. 10 in the denary system is the same as saying 1xTens + 0xOnes, 11 is 1xTens + 1xOnes and so on. The difference with octal numbers is that we're dealing with a base of 8. Therefore, 10 in octal is 1xEights + 0xOnes (i.e., 8), 11 is 1xEights + 1xOnes (i.e., 9).

These days it's unlikely that you'll actually use octal numbers. They were originally used as a compact way of representing bits. Once computer architectures based themselves around bytes, octal numbers were found to be inefficient in converting binary numbers.

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss
Community Forum
Explore Java
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Java

©2009 About.com, a part of The New York Times Company.

All rights reserved.