Decimal and Binary
4,894 views · Published 25 March 2018 · 13:53 · Indexed 23 September 2026
Channel: ITFreeTraining · 2018 · Education
In this video from ITFreeTraining, I will look at how to convert between decimals, binary and hexadecimal. Access the rest of the course at http://ITFreeTraining.com/ipv4 This is a skill that is required for working with IPv4 and IPv6. Download the PDF handout at http://ITFreeTraining.com/handouts/ipv4/converting-decimals.pdf In This Video 0:09 – This video looks at binary, hexadecimal, and how they relate to bytes and other units. I will look at how you would convert between these. This skill becomes particularly important when designing networks and is a must have for the administrator. What is binary? 0:27 – Binary is a system that uses values or switches that are either on or off. If the switch is on, the value is one. If the switch is off, the value is 0. This gives you two possible values. However, if you group multiple binary values together it is possible to represent larger numbers. A common way of grouping multiple binary digits together is by using a string. In this example, 8 binary values have been combined together in a string. An individual zero or one is known as a bit. In this example, there are 8 bits in the binary string. The next step to understanding binary is how would a binary string get converted to decimal? Power of 2 1:13 – When converting between different types of units, the power of 2 table is used. The first row is two to the power of zero. This gives a result of one. In computing, counting will often start with the value of zero. This means, two to the power of zero can give two values. These are zero and one. If you consider the next row, two to the power of one gives a value of two. So the value has doubled. The next row of two to the power of two gives a value of four so it has doubled again. The power of two table becomes important when converting from binary to decimal or decimal to binary. For this reason, it is a good idea to memorize this table. Binary to Decimal 1:58 – To convert a binary string to decimal a conversion table is used. In this example, the binary string 10011010 will be converted to decimal. To do this, the binary string is added to the table going from right to left. The value at the bottom of the table is calculated by multiplying the row “Powers of 2” by the row “Example”. In the case of column 8, this would be 128*1 which would give 128. In the case of column 7 64*0 would give a result of 0. Columns 6, 3 and 1 are all 0 so would give a result of 0. Columns 5, 4 and 2 have 1 values so the results would be column 5 1*16=16, column 4 1*8=8 and column 2 1*2=2. This description is too long for YouTube. Please check it http://itfreetraining.com/ipv4/converting-decimals for the full text. Credits Trainer: Austin Mason http://ITFreeTraining.com Script: Phil Guld http://philguld.com Voice Talent: HP Lewis http://hplewis.com Companion Document: Phil Guld http://philguld.com Website and Social Media Manager: Phil Guld http://philguld.com Video Production: Kevin Luttman http://www.KevinLuttman.com Quality Assurance: Brett Batson http://www.pbb-proofreading.uk