0% found this document useful (0 votes)
39 views4 pages

Hexa-Decimal Number Systems

Hexadecimal is a base-16 numbering system that uses 16 symbols (0-9 and A-F) to represent values and is commonly used to simplify binary numbers. Each hex digit represents a 4-bit binary number, allowing binary numbers to be written with fewer digits. Hexadecimal is widely used in computing, including for color codes, assembly language, and error messages as it provides an intermediate representation between binary and decimal that is more concise and user-friendly.

Uploaded by

zaina.s
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views4 pages

Hexa-Decimal Number Systems

Hexadecimal is a base-16 numbering system that uses 16 symbols (0-9 and A-F) to represent values and is commonly used to simplify binary numbers. Each hex digit represents a 4-bit binary number, allowing binary numbers to be written with fewer digits. Hexadecimal is widely used in computing, including for color codes, assembly language, and error messages as it provides an intermediate representation between binary and decimal that is more concise and user-friendly.

Uploaded by

zaina.s
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Hexa-decimal Number Systems:

Hexadecimal (or hex) is a base 16 system used to simplify how binary is


represented. A hex digit can be any of the following 16 digits: 0 1 2 3 4 5 6 7 8 9 A
B C D E F.

Each hex digit reflects a 4-bit binary sequence.

This table shows each hex digit with the equivalent values in binary and denary.
This means an 8-bit binary number can be written using only two different hex digits -
one hex digit for each nibble (or group of 4-bits). It is much easier to write numbers as
hex than to write them as binary numbers.
For example:
11010100 in binary would be D4 in hex
FFFF3 in hex would be 11111111111111110011 in binary

Using hexadecimal
Hex codes are used in many areas of computing to simplify binary codes. It
is important to note that computers do not use hexadecimal - it is used by
humans to shorten binary to a more easily understandable form.
Hexadecimal is translated into binary for computer use. Some examples of
where hex is used include:

colour references
assembly language programs
error messages
Colours

Hex can be used to represent colours on web pages and image-editing programs
using the format #RRGGBB (RR = reds, GG = greens, BB = blues). The # symbol
indicates that the number has been written in hex format.

This system uses two hex digits for each colour, eg #FF6600.
As one hex digit represents 4 bits, two hex digits together make 8 bits (1 byte). The values for each
colour run between 00 and FF. In binary, 00 is 0000 0000 and FF is 1111 1111. That provides 256
possible values for each of the three colours.

That gives a total spectrum of 256 reds x 256 greens x 256 blues - which is over 16
million colours in total.
#FF0000 will be the purest red - red only, no green or blue.
Black is #000000 - no red, no green and no blue.
White is #FFFFFF.
An orange colour can be represented by the code #FF6600. The hex code is much
easier to read than the binary equivalent 1111 1111 0110 0110 0000 0000.
If you are making a web page with HTML or CSS you can use hex codes to choose the
colours.
RGB colour model

Hex values have equivalents in the RGB colour model. The RGB model is very
similar to the hex colour model, but instead of combining hex values you use a value
between 0 and 255 for each colour. So an orange colour that is #FF6600 in hex would
be 255, 102, 0 in RGB.

Errors

Hex is often used in error messages on your computer. The hex number refers to
the memory location of the error. This helps programmers to find and then fix
problems.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy