Sign in to follow this  
Kenny77

Octal and Hexadecimal Numbers

Recommended Posts

rip-off    10979
They are numbers written in a different base sytem than decimal.

Octal numbers are base 8, so only contain the numerals 0,1,2,3,4,5,6,7.

Hexadecimal numbers are base 16, so contain 0,1,2 ... 13,14,15. numbers 10 - 15 are commonly written A-F, so you get 0,1,2....,9,A,B,C,D,E,F.

These bases are used because they map to binary nicley, both being powers of two.

If you've never used binary before, I suggest you look it up.

Share this post


Link to post
Share on other sites
wild_pointer    291
Binary (base 2): 101 = (1*2^3) + (0*2^2) + (1*2^1)

Octal (base 8): 101 = (1*8^3) + (0*8^2) + (1*8^1)

Decimal (base 10): 101 = (1*10^3) + (0*10^2) + (1*10^1)

Hex (base 16): 101 = (1*16^3) + (0*16^2) + (1*16^1)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this