## Conversion between hexadecimal and decimal

What you should know: In the previous lesson we showed that hexadecimal format is used whenever there is the need to represent a binary number. This is because the conversion between the two formats is very easy and, with the right training, can be performed on the fly without the need to use a calculator […]

## Exercises. Decimal to binary conversion

What you should know: Convert the following decimal numbers to binary Show solution Number Condition Rightmost bit 48 even 0 24 even 0 12 even 0 6 even 0 3 odd 1 1 odd 1 The solution is 110000 Show solution Numero Condizione Bit a destra 151 odd 1 75 odd 1 37 odd 1 […]

What you should know: In the previous lessons, we’ve shown that the conversion between binary and decimal can be time consuming specifically when dealing with large numbers. Moreover, the binary representation uses about 3.3 bits for every decimal digit. This means that binary representations are usually too long to be read comfortably. Hexadecimal and octal […]

## Decimal to binary converter

What you should know: Input any decimal value. The result is: More resources:

## Binary to decimal converter

What you should know: Input any binary value. The result is: More resources:

## Binary data encoding

Computers represent and memorize data using electronic components that can assume only two states: on or off, just like a switch. The information that can be stored in a switch is the simplest that can be stored in a computer system and is called a bit. This means that every kind of information that we […]

## Binary numbers

What you should know: In the previous lesson, we were talking about the behavior of sequences of several bits. We showed that we were able to double the number of combinations that could be attained, just adding a bit to the left and repeating the same sequence twice, where the leftmost bit changes from 0 […]

## Binary to decimal conversion

What you should know: In the previous lesson we saw that every bit in a binary number has a value that can be calculated using the following rules: Bit Value 0 The value is always 0 1 , where position starts from 0 at the rightmost part of the sequence and increases moving to the […]

## Exercises: binary to decimal conversion

What you should know: Convert the following binary numbers to decimal Show solution 0 0 0 1 0 0 0 1 128 64 32 16 8 4 2 1 0 0 0 16 0 0 0 1 16+1=17 Show solution 1 0 0 1 1 0 0 1 128 64 32 16 8 4 2 […]

## Decimal to binary conversion

What you should know: In the lesson on binary numbers we explained that the rightmost bit of a even number in binary is always 0, while in an odd number it equals 1. Moreover, we said that divisions by two can be performed removing the rightmost bit and shifting all the others to the right […]