Computer Programming

 
 

-. ..- -- Numbers -... . .-. ...

 
 
 
 

Numeric representation in computer programming involved binary, decimal, hexadecimal and octal numbering.

Binary

Binary numbers are known as base-2 number.

The numbers in binary are: 0, 1

Each number placeholder known as bit that has the possible value of 0 or 1

Decimal

Decimal numbers are known as base-10 number.

The numbers in decimals are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Hexadecimal

Hexadecimal numbers are known as base-16 number.

The numbers in hexadecimals are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

Octal

Octal numbers are known as base-8 number.

The numbers in octals are: 0, 1, 2, 3, 4, 5, 6, 7

 
  20-Jun-2005