Hexadecimal

when you write numerical value starting with '0x', It will be recognized as hexadecimal.

int hex=0xA;//It is same as 10. whether capital letter or small letter,it is ok.

what is Hexadecimal?

Hexadecimal number is that when it comes to 16,then go up to next digit.
range is from 0 to 16.
In programming, over ten number is represented as alphabets(a-f).

Hexadecimal 0 1 2 3 4 5 6 7 8 9 a b c d e f
Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

What is use for?

In hexadecimal , 4bit set is one character.
this is useful when you think of binary numeral system.

0001 1010 1111
1 A F
en.gif en
ja.gif ja


edit
サポートサイト Wikidot.com