News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

Hexadecimal numbers (base 16)

Started by sukishan, Sep 04, 2009, 12:53 PM

Previous topic - Next topic

sukishan

Hexadecimal numbers (base 16)
Like decimal numbers have 10 different digits to be represented (0123456789) and octal numbers have 8 (01234567), hexadecimal numbers have 16 different digits, that are represented by the numbers from 0 to 9 and the letters A, B, C, D, E and F, which together serve us to represent the 16 different symbols that we need to express base 16 numbers:


hexadecimal  decimal
-----------  -------
      0         0   (zero)
    0x1         1   (one)
    0x2         2   (two)
    0x3         3   (three)
    0x4         4   (four)
    0x5         5   (five)
    0x6         6   (six)
    0x7         7   (seven)
    0x8         8   (eight)
    0x9         9   (nine)
    0xA        10   (ten)
    0xB        11   (eleven)
    0xC        12   (twelve)
    0xD        13   (thirteen)
    0xE        14   (fourteen)
    0xF        15   (fifteen)
   0x10        16   (sixteen)
   0x11        17   (seventeen)


In C++, hexadecimal numbers are preceded by 0x (zero, x).
A good beginning makes a good ending

AdolphcAl

We cover Capital & Celeb News within the sections Markets, Business, Showbiz, Gaming, and Sports.
https://www.cnnworldtoday.com/