What is binary code translation ?

 Binary code translation 💻is a way in which computer 🖥️ ("all logic computing devices") understand s our language and we understand computer language. In the computer world computers and all other electronic devices only understand 0 or 1. Binary digits can be collected by bytes. There are two popular ways to turn binary into a decimal. 1st one is Positional Notation Method and Doubling Method. Later in this tech blog, I will explain how to convert binary into decimal. Before that let us understand binary code in depth.

Binary code


What is binary code?

Binary code represents text, computer processing instructions, or other data using a two-dimensional system. The two symbol system used is usually "0" and "1" from the binary number system. Binary code provides a pattern of binary digits, also known as bits, per character, tutorial, etc. For example, an eight-bit binary string can represent any 256 values ​​that can and, therefore, can represent a wide variety of different objects.




In computers and telecommunications, binary codes are used in a variety of ways to encode data, such as letter strings, into smaller strings. Those methods can use fixed-width or wide-range cables. In a binary code with a fixed width, each letter, digit, or other character is represented by a small string of the same length; that small string, translated as a binary number, is usually displayed in code tables in octal decimal, or hexadecimal notation.

Binary computers - 0 and 1 digits - to store data. A binary digit is a very small unit of data on a computer. Represented by 0 or a 1. Binary numbers are made up of binary digits (bits), e.g. Binary number 1001. Computer processing circuits are made up of billions of transistors. The transistor is a small change made by the electronic signals it receives. Digits 1 and 0 used in the binary show the status of the on and off of the transistor. Computer programs are groups of commands. Each command is translated into machine code - simple binary codes activate the CPU. Editors write computer code and this translator converts it into binary commands that can be processed by a processor. All software, games, music, movies, documents, files, and other computer-generated information are also stored in binary form.


The number of numbers displayed in each case depends on the number given for each symbol. In the early days of computers, switches were switched on, and paper tapes were used to represent binary values. In today's computer, numerical values ​​can be represented by two different voltages; on a magnetic disk, magnetic heights can be used. The condition "positive", "yes", or "on" does not actually equal one number; depending on the structure used. In line with the standard numerical representation using Arabic numerals, binary numbers are usually written using the symbols 0 and 1. The following ideas are similar:


100101 binary (explicit format statement)

100101b (an appendix showing a binary format; also known as an Intel assembly

100101B (annexure showing binary format)

bin 100101 (start showing binary format)

1001012 (subscription showing basic 2 (binary) notation)

% 100101 (Beginner showing binary format; also known as Motorola Convention

0b100101 (Introduction to binary format, standard for programming languages)

6b100101 (prefix showing the number of bits in binary format, common in standard languages)

# b100101 (Startup showing binary format, common in Lisp system languages)

Speaking of which, binary numbers are often read digitally, in order to be separated from decimal numbers. For example, the binary number 100 is called one egg, there is a hundred, making its clear identity clear, and for correction purposes. Since the binary number 100 represents the fourth value, it can be confusing to view a number as a hundred (a word representing a completely different value, or value). Alternatively, the binary number 100 can be read as "four" (fair value), but this does not make its apparent nature clear.



History of Binary codes…

The modern system of binary numbers, the basis of the binary code, was invented by Gottfried Leibniz in 1689 and appears in his article Explication de l'Arithmétique Binaire. The full title is translated into English as "Binary Statistical Definition", which uses only letters 1 and 0, in other words in its significance, and in light, throws out the ancient Chinese figures of Fu Xi. "Leibniz's system uses 0 and 1, as a modern system of binary numbers. Leibniz met I, Ching, with French Jesuits Joachim Bouvet and was amazed at how his hexagrams matched the binary numbers from 0 to 111111. and concluded that this mention was evidence of China's great achievements in the form of visual philosophies that he saw as popular. Leibniz saw hexagrams as evidence of his whole religion. After his views were ignored, he came across an old Chinese text called The Ching or 'Book of Changes', which used 64 acres of binary six-bit viewing code. he does not set it straight. He created a system consisting of rows of eggs and one. At this time, Leibniz had not yet found the use of the program. Binary systems prior to Leibniz also existed in the ancient world. The above I Ching states that Leibniz encountered the days of the 9th century BC in China. The binary system of I Ching, a divination text, is based on the dual yin and yang. binary tones used to send messages throughout Africa and Asia. The Indian scholar Pingala (c. 5th-2nd century BC) developed a dual system to explain the prosody to his Chandashutram. Residents of the island of Mangareva in French Polynesia used the hybrid binary-decimal system before 1450. In the 11th century, the philosopher and philosopher Shao Yong developed a method of arranging the corresponding hexagrams, albeit unintentionally, in order of 0 to 63, as represented by banners, yin as 0, yang as 1, and a little more remarkable. Order and lexicographical order in the sextuples of selected items in a set of two items. In 1605 Francis Bacon spoke of a system in which the letters of the alphabet could not be reduced to a series of binary digits, which could be coded as the most obvious variation in a font in any random text. Important in the general view of binary coding, he added that this method can be used for any objects at all: "as long as those objects can be only two different; George Boole published an 1847 paper entitled 'The Mathematical Analysis of Logic' describing a system of algebraic logic, now known as Boolean algebra. Boole's plan was based on a binary, yes-no, closure system that contains three basic functions: ONE, OR, and NO. The program was not implemented until a graduate of the Massachusetts Institute of Technology, Claude Shannon, realized that the Boolean algebra he studied was like an electric circuit. Shannon wrote her thesis in 1937, which began to apply what she found. Shannon's thesis was the beginning of the use of binary code in applications such as computers, electrical circuits, and more. Everything on the computer is represented as a stream of binary numbers. Sound, pictures, and characters all look like binary numbers in a machine code. These numbers are entered in different data formats to give them meaning, e.g. The 8-bit pattern 01000001 can be number 65, the letter 'A', or the color in the picture. Dual code 10 is power (100, 1,000, etc.), in the binary system each digit position represents a power of 2 (4, 8, 16, etc.). A binary code signal is a series of electric pulses representing numbers, letters, and functions to be performed. A mechanism called a clock sends common cones, and objects such as transistors open (1) or close (0) to transmit or block pulses. In a binary code, each decimal number (0-9) is represented by a set of four-digit binary or fragments.




The four basic mathematical functions (addition, subtraction, multiplication, and subtraction) can all be reduced to the integration of Boolean algebraic basic functions into prime numbers. 

In writing, when numbers, letters, or words are represented by a set of symbols, a number, letter, or word is encoded. A group of symbols is called a code. Digital data is represented, stored, and transmitted as a group of binary bits. This group is also called binary code. Binary code is represented by a number and a letter of the alphabet.

Ancient Egyptian writers used two different systems in their parts, the Egyptian fragments (unrelated to the numerical system) and the Horus-Eye components (so-called because many mathematicians believe that the symbols used in this system could be designed to form Horus' eye, although this has been disputed). Horus-Eye Fraction is a binary system for calculating the number of grains, liquids, or other means, in which the fraction is expressed as a total of 1/2, 1/4, 1/8, 1/16, 1/32, and 1/64. The earliest forms of this system of things can be traced to texts from the Fifth Egyptian Empire, about 2400 BC, and its complete hieroglyphic form dates back to the Nineteenth List of Egypt, about 1200 BC. The method used in ancient Egyptian multiplication is closely related to binary numbers. In this way, multiplying one number per second is done in a sequence of steps where the number (originally the first two-digit number) is doubled or has the first number returned to it; the way in which these steps will be followed is provided by the binary representation of the second number. This method can be seen to be used, for example, in the Rhind Mathematical Papyrus, which dates back to about 1650 BC.

The Indian scholar Pingala (c. 2nd century BC) developed a binary system to define prosody. Use binary numbers in the form of short and long words (these are the same length as two short letters), making them look like Morse code. They are known as light and guru (heavy) syllables.




The Pingala Hindu classic entitled Chandaḥśāstra (8.23) describes the formation of a matrix to give a unique value to each meter. "Chandaḥśāstra" literally translates into metallurgy in Sanskrit. Binary submissions to Pingala's system go up to the right, not to the left as in today's price index. In Pingala's system, numbers start from the first number, not from zero. The four short characters "0000" are the original pattern and correspond to a single value. The price range is available by adding one addition to the local price range.



Who is the inventor of binary code?

The modern system of binary numbers goes back to Gottfried Leibniz who in the 17th century proposed and developed it in his article Explication de l'Arithmétique Binaire. Leibniz founded the program about 1679 but published it in 1703.

Advantages of Binary Code


Binary codes are suitable for computer programs.


Binary codes are ideal for digital communication.


Binary codes perform analysis and design of digital circuits when using binary codes.


Since only 0 and 1 are used, getting started is easy.




Classification of binary codes


The codes are broadly divided into the following six categories.


  • Weighted Codes

  • Non-Weighted Codes

  • Binary Coded Decimal Code

  • Alphanumeric Codes

  • Error Detecting Codes

  • Error-Correcting Codes



Weighted Codes

Weighted binary codes are those binary codes that comply with the weight-bearing principle. Each number position represents a specific weight. Several systems of codes are used to display decimal digits 0 to 9. In these codes, each decimal digit is represented by a group of four bits.



Non-Weighted Codes

In this type of binary code, status weights are not provided. Examples of weightless codes are Excess-3 code and Gray code.


Excess-3 code

It is also called the XS-3 code. It is a non-weighted code used to display decimal numbers. Excess-3 code words taken from 8421 BCD code names add (0011) 2 or (3) 10 to each code name in 8421.


Gray Code

It is a weightless code and is not an arithmetic code. That means no specific instruments are given a small position. It has a very special feature that only one thing will change each time a decimal number is increased. Since only one change at a time, the gray code is called the unit code. The gray code is a rotating code. The gray code cannot be used for mathematical operations. 

Application of Gray code


  • Gray code is popularly used in the shaft position encoders.

  • A shaft position encoder produces a code word that represents the angular position of the shaft.


Binary Coded Decimal (BCD) code

In this code, each decimal digit is represented by a 4-bit binary number. BCD is a way of displaying each digit with a binary code. In the BCD, by four bits we can represent sixteen numbers (0000 to 1111). But in the BCD code, only the first ten are used (0000 to 1001). The remaining six combinations of codes 1010 to 1111 are not allowed in BCD.


Advantages of BCD Codes


  • It is very similar to the decimal system.

  • We need to remember the binary equivalent of decimal numbers 0 to 9 only.

Disadvantages of BCD Codes

  • The addition and subtraction of BCD have different rules.

  • The BCD arithmetic is a little more complicated.

  • BCD needs more bits than binary to represent the decimal number. So BCD is less efficient than binary.


Alphanumeric codes

A binary digit can represent only two symbols as it has only two forms '0' or '1'. But this is not enough communication between two computers because that's when we need more communication signals. These symbols are required to represent 26 letters with capital letters and lowercase letters, numbers from 0 to 9, punctuation marks, and other symbols.




Alphanumeric codes represent numbers and letters of the alphabet. In particular, such codes represent other characters such as symbols and the various commands required to transmit information. An alphanumeric code must represent at least 10 digits and 26 letters of the alphabet e.g. 36 items in total. The following three alphanumeric codes are widely used to represent data.


  • American Standard Code for Information Interchange (ASCII).

  • Five-bit Baudot Code.

  • Extended Binary Coded Decimal Interchange Code (EBCDIC).


ASCII code is a 7-bit code whereas EBCDIC is an 8-bit code. ASCII code is more commonly used worldwide while EBCDIC is used primarily in large IBM computers.


Many methods or techniques can be used to convert code from one format to another. We'll demonstrate here the following

  • Binary to BCD Conversion

  • BCD to Binary Conversion

  • BCD to Excess-3

  • Excess-3 to BCD

Binary to BCD Conversion

Steps

  • Step 1 -- Convert the binary number to decimal.

  • Step 2 -- Convert decimal number to BCD.

Example − convert (11101)2 to BCD.

Step 1 − Convert to Decimal

Binary Number − 111012

Calculating Decimal Equivalent −

Step

Binary Number

Decimal Number

Step 1

111012

((1 × 24) + (1 × 23) + (1 × 22) + (0 × 21) + (1 × 20))10

Step 2

111012

(16 + 8 + 4 + 0 + 1)10

Step 3

111012

2910

Binary Number − 111012 = Decimal Number − 2910

Step 2 − Convert to BCD

Decimal Number − 2910

Calculating BCD Equivalent. Convert each digit into groups of four binary digits equivalent.

Step

Decimal Number

Conversion

Step 1

2910

00102 10012

Step 2

2910

00101001BCD

Result

(11101)2 =  (00101001)BCD


BCD to Binary Conversion

Steps

  • Step 1 -- Convert the BCD number to decimal.

  • Step 2 -- Convert decimal to binary.

Example − convert (00101001)BCD to Binary.

Step 1 - Convert to BCD

BCD Number − (00101001)BCD

Calculating Decimal Equivalent. Convert each four-digit into a group and get decimal equivalent for each group.

Step

BCD Number

Conversion

Step 1

(00101001)BCD

00102 10012

Step 2

(00101001)BCD

210 910

Step 3

(00101001)BCD

2910

BCD Number − (00101001)BCD = Decimal Number − 2910


Step 2 - Convert to Binary

Used a long division method for decimal to binary conversion.

Decimal Number − 2910

Calculating Binary Equivalent −

Step

Operation

Result

Remainder

Step 1

29 / 2

14

1

Step 2

14 / 2

7

0

Step 3

7 / 2

3

1

Step 4

3 / 2

1

1

Step 5

1 / 2

0

1

As mentioned in Steps 2 and 4, the remainders have to be arranged in the reverse order so that the first remainder becomes the least significant digit (LSD) and the last remainder becomes the most significant digit (MSD).

Decimal Number − 2910 = Binary Number − 111012

Result

(00101001)BCD = (11101)2


BCD to Excess-3

Steps

  • Step 1 -- Convert BCD to decimal.

  • Step 2 -- Add (3)10 to this decimal number.

  • Step 3 -- Convert into binary to get excess-3 code.

Example − convert (0110)BCD to Excess-3.

Step 1 − Convert to decimal

(0110)BCD = 610

Step 2 − Add 3 to decimal

(6)10 + (3)10 = (9)10

Step 3 − Convert to Excess-3

(9)10 = (1001)2

Result

(0110)BCD = (1001)XS-3




Excess-3 to BCD Conversion

Steps

  • Step 1 -- Subtract (0011)2 from each 4 bit of excess-3 digit to obtain the corresponding BCD code.

Example − convert (10011010)XS-3 to BCD.

Given XS-3 number  = 1 0 0 1 1 0 1 0 

Subtract (0011)2   = 1 0 0 1 0 1 1 1

                    --------------------

               BCD = 0 1 1 0   0 1 1 1


Result

(10011010)XS-3 = (01100111)BCD


Complement Arithmetic

Complements are used in digital computers to simplify the operation of extruders and to make practical objects. In each radix-r system (radix r represents the basis of a numerical number) there are two types of fillers.


S.N.

Complement

Description

1

Radix Complement

The radix complement is referred to as the r's complement

2

Diminished Radix Complement

The diminished radix complement is referred to as the (r-1)'s complement

Binary system complements

As the binary number system has baser = 2. So the two types of compliments for the binary system are 2's complement and 1's complement.

1's complement

The 1's complement of a number is found by changing all 1's to 0's and all 0's to 1's. This is called taking a complement or 1's complement. An example of 1's Complement is as follows.


2's complement

The 2's complement of the binary number is obtained by adding 1 to the Least Significant Bit (LSB) of 1's complement of the number.

2's complement = 1's complement + 1

An example of 2's Complement is as follows.






Why Is Binary Code Such a Big Deal?


On computers and other computer devices (such as calculators, printers, coffee makers, and microwaves), the pieces are often transmitted electronically. But this electronic information is rapidly passing away. For it to be available for any length of time - and without a power supply - it must be physically stored inside the device's computer hardware. That means that every part of the binary code on a computer has to be converted into a physical or a world. Binary code, as it turns out, is easy to change from electronic information (e.g., 0s and 1s) to physical information, because only two types of material or states are required. The transition from electronic knowledge to the end of physical information is like someone speaking a binary "dog" code with 0s and 1s while writing them down on a piece of paper. The spoken 0s and 1s may not be heard permanently after they have been spoken, but by physically writing them on a piece of paper, you can return to them many times. In the case of computers, that binary code can be stored at high and low values, on strong magnetic or diamond parts of a metal disk, or, on older computers, in closed and unlocked holes in cardstock.




In Pulitzer's award-winning book The Soul of a New Machine, author Tracy Kidder explains how Data General computers store information in a bilingual language:

“Computers, so to speak, use symbols. They do not deal directly with numbers, but with symbols that represent not only numbers but also words and pictures. Within digital computer circuits, these signals exist in the form of electricity, and there are only two basic signals - high voltage and low voltage. Obviously, this is an amazing type of machine model; circuits need not distinguish between the nine different colors of gray but only between black and white, or in terms of electricity, between high and low phones. "

No matter what the content, binary code has always been the gold standard for storing visual data on computer devices from calculators to supercomputers.

Any code that uses just two symbols to represent information is considered binary code. Different versions of binary code have been around for centuries, and have been used in a variety of contexts. For example, Braille uses raised and un-raised bumps to convey information to the blind, Morse code uses long and short signals to transmit information, and the example above uses sets of 0s and 1s to represent letters. Perhaps the most common use for binary nowadays is in computers: binary code is the way that most computers and computerized devices ultimately send, receive, and store information.




Organizing and reading fragments by order groups is what makes binary a great force for storing and transmitting large amounts of information. To understand why it is helpful to think differently: what if only one is used at a time? Well, you will only be able to share two types of information - one type represented by 0 and the other by 1. Forget about encoding all letters or punctuation marks - you only get two types of information.


But if you collect two pieces, you get four kinds of information:


00, 01, 10, 11


By multiplying from bit groups to three-bit groups, you double the amount of information you can enter:


000, 001, 010, 011, 100, 101, 110, 111


While the eight different types of information are still not enough to represent all the characters, you can probably see where the pattern is heading.


Using any binary code representation you would like, try to figure out how many possible combinations of bits you can make using four collected pieces. Then try again using five pieces collected. How many combinations do you think you can use using six bits at a time, or 64? By combining one piece together into groups large and large, computers can use binary code to find, edit, send, and store multiple types of data.


Kidder takes this point home to The Soul of a New Machine:


“Computer engineers charge one high or low voltage, and it shows the same information. Just a little bit cannot symbolize much; has only two forms, therefore, it can be used to represent only two numbers. Place multiple pieces in a row, however, and the number of items that can be replaced increases significantly. ”

As computer technology advanced, computer engineers needed ways to send and store large amounts of data on time. As a result, the minimum length used by computers has been steadily increasing during computer history. If you have a new iPhone, it uses a 64 microprocessor, which means it stores and accesses information about 64 binary number groups - meaning it can store 264, or more than a unique 64-bit combination of 64 binary numbers. Oops.




This concept of data mining with multiple bits simultaneously to improve computing power and efficiency has run computer engineering from the very beginning and still does today. Although this quote from The Soul of a New Machine was first published in 1981, the basic rule of coding for binary code with increasing difficulty still awaits the continuation of computer power today:


“Within certain key components of a modern computer, fragments - electrical signals - are carried in packets. Like phone numbers, packets are standard in size. IBM machines traditionally contained data in packages 32 bits long. NOVA General data and many small computers after.






Why do computers use binary?

Binary is still the main language of computers and is used electronically and computer hardware for the following reasons.

Simple and elegant design.

Binary methods 0 and 1 are quick to detect an electric signal being turned off (false) or in a true (true) state.

Having only two provinces located at a distance from the electrical signal makes it less prone to power outages.

The good and bad poles of magnetic media are translated faster than binary.

Binary is the most effective way to control rational circuits.


How to Read Binary Code?

"Reading" binary code generally means translating a binary number into a basic (decimal) number that people are familiar with. This conversion is easy enough to do in your head as long as you understand how binary language works.b


Each digit with a binary number has a value if the digit is not zero. When you have found all those numbers, simply add them together to get the base number 10 (decimal) for the binary number.


To see how this works, take the binary number 11001010.


The best way to learn binary numbers is to start with the right digits and work your way to the left. The value of that first place is zero, which means that the value of that digit, if not an egg, is two forces in zero, or one. In this case, since the digit is zero, the value of this area will be zero.


Next, move on to the next digit. If one, then counts two in the power of one. Rewrite this number. In this example, the number is two in the power of one, which is two.


Continue to repeat this process until you reach the columns on the left.


To complete, all you have to do is add all those numbers together to get the whole decimal decimal number: 128 + 64 + 0 + 0 + 8 + 0 + 2 + 0 = 202




What Is Hexadecimal?

Hexadecimal defines a base-16 system. That, it defines a numbering system consisting of 16 consecutive numbers as basic units (including 0) before adding a new position to the next number. (Note that we use "16" here as a decimal number to define a number "10" in hexadecimal.) Hexadecimal numbers are 0-9 and use the letters A-F. We show the equation of binary numbers, decimal and hexadecimal numbers in the table below.


Hexadecimal is an easy way to display binary numbers on modern computers where the byte is always specified to contain an eight-digit binary. When displaying content on computer storage (for example, when you receive a basic storage discard to remove an error in a new computer program or when displaying a series of text characters or a series of binary values ​​in a program registration or HTML page), one hexadecimal number can represent a four-digit binary format. Two hexadecimal numbers can represent eight-digit binary or byte.

In mathematics and computing, the hexadecimal (also base 16 or hex) system is a positional numeral system that represents numbers using radix (base) 16. often the symbols "0" - "9" represent the numbers 0 to 9, and the "A" - "F" (or alternatively "a" - "f") represent the numbers 10 to 15.




Hexadecimal numbers are widely used by computer programmers and programmers because they provide a personal representation of binary code values. Each hexadecimal digit represents four pieces (binary digits), also known as a nibble (or nybble), which is 1/2 byte. For example, a single byte can have values ​​ranging from 00000000 to 11111111 in binary form, which is not as well represented as 00 to FF in hexadecimal.


In mathematics, subscriptions are often used to determine the basis. For example, a value of 39,050 will be expressed in hexadecimal as 988A16. In the system, a few notes are used to indicate hexadecimal numbers, usually involving a prefix or a suffix. The prefix 0x is used in C and in program-related languages, which can display this value as 0x988A.


Hexadecimal is used in Base16 encoding, where each plaintext byte is divided into two 4-bit values ​​and represented by two hexadecimal digits.




Where and Why Is Hexadecimal Used?

Many of the error codes and other values ​​used within the computer are represented in the hexadecimal format. For example, error codes called STOP codes, displayed in the Blue Screen of Death, are always in hexadecimal format.


Editors use hexadecimal numbers because their values ​​are shorter than they would be if they were denoted by a decimal and much shorter than binary, using only 0 and 1.


For example, the value of hexadecimal F4240 equals 1,000,000 in decimals and 1111 0100 0010 0100 0000 in banners.


Elsewhere hexadecimal is used as HTML color code to express a particular color. For example, a web designer could use the hex value FF0000 to define a red color. This is down to FF, 00,00, which specifies the number of red, green, and blue colors to be used (RRGGBB); 255 red, 0 green, and 0 blue in this example.




The fact that hexadecimal values ​​of up to 255 can be expressed in two digits, and HTML color codes using three two-digit sets, means that more than 16 million colors (255 x 255 x 255) can be displayed in hexadecimal format, saving space a lot compared to self-expression in another format like decimal.


Yes, binary is somewhat simple but also much easier for us to learn hexadecimal values ​​than binary prices.


How to Calculate in Hexadecimal

Calculating in a hexadecimal format is easy as long as you remember that there are 16 characters that make up each set of numbers.


In decimal form, we all know that we count as follows:


0,1,2,3,4,5,6,7,8,9,10,11,12,13, ... add 1 before starting a set of 10 numbers (ie, number 10) .


In the hexadecimal format, we calculate as follows, including all 16 numbers:


0,1,2,3,4,5,6,7,8,9, A, B, C, D, E, F, 10,11,12,13 ... and, add 1 before starting Number 16 is reset.




How to Manually Convert Hex Values?

Adding hex values ​​is very easy and is actually done in the same way as counting numbers on a decimal system.


A common mathematical problem like 14 + 12 can usually be done without writing anything down. Most of us can do that in our heads - that's 26. Here's one helpful way to look at it:


14 is divided into 10 and 4 (10 + 4 = 14), while 12 is simplified as 10 and 2 (10 + 2 = 12). When added together, 10, 4, 10 and 2, are equal to 26.


When three digits are introduced, such as 123, we know that we have to look at all three areas to understand what they really mean.


Three are independent because it is the last number. Subtract the first two, then the 3 is the 3rd. 2 is multiplied by 10 because it is the second digit in the number, as the first example. Also, subtract 1 from 123, and leave 23, which is 20 + 3. The third number from the right (1) is taken ten times, twice (100 times). This means that 123 turns into 100 + 20 + 3, or 123.


Here are two other ways to view it:


... (N X 102) + (N X 101) + (N X 100)


or ...


... (N X 10 X 10) + (N X 10) + N


Connect each digit in the correct place in the formula from the top to turn 123 into: 100 (1 X 10 X 10) + 20 (2 X 10) + 3, or 100 + 20 + 3, which is 123.


The same is true when the number is in the thousands, like 1,234. 1 is actually 1 X 10 X 10 X 10, which makes it a thousandth place, 2 in hundredths, and so on.


Hexadecimal is made in the same way but uses 16 instead of 10 because it is the base of 16 instead of base 10:


... (N X 163) + (N X 162) + (N X 161) + (N X 160)


For example, we say we have a problem with 2F7 + C2C, and we want to know the decimal value of the response. You should first convert hexadecimal digits into decimal, and then simply add the numbers together as you would with the two examples above.


As we have already explained, zero to 9 in both decimal and hex are exactly the same, while the numbers 10 to 15 are represented by the letters A to F.




The first far-right number of the hex value 2F7 stands alone, as a decimal system, exiting 7. The next number on its left needs to be multiplied by 16, the same as the second number from 123 (2) above needed to be multiplied by 10 (2 X 10) to make a number 20 Finally, the third number from the right needs to be multiplied by 16, twice (256), as a decimal-based number needs to be multiplied by 10, twice (or 100) when it has three digits.


Therefore, skipping 2F7 in our problem makes 512 (2 X 16 X 16) + 240 (F [15] X 16) + 7, up to 759. As you can see, F is 15 years old because of its Hex sequence (see how to count in Hexadecimal above) —is the last number 16.


C2C is converted to decimal as follows: 3,072 (C [12] X 16 X 16) + 32 (2 X 16) + C [12] = 3,116


Also, C is equal to 12 because it is the number 12 when you count from zero.


This means that the 2F7 + C2C is actually 759 + 3116, which equals 3,875.


While it is good to know how to do this manually, it is very easy to work with hexadecimal values ​​with a calculator or converter.





Hex Converters & Calculators

The hexadecimal converter is useful if you want to translate hex into decimal, or decimal to hex, but you do not want to do it manually. For example, inserting the hex value 7FF into the converter will immediately tell you that the equal decimal value is 2,047.


There are many easy-to-use hex converters online, BinaryHex Converter, SubnetOnline.com, RipidTables, and JP Tools to name just a few. Some of these sites allow you to convert not only hex to decimal (and vice versa) but also to convert hex to binary, octal, ASCII, and others.


Hexadecimal calculations can serve as a decimal system calculation, but only for hexadecimal values. 7FF and 7FF, for example, are FFE.


Math Warehouse hex calculator supports the integration of numerical systems. One example would be to put a hex and a binary value together, and then look at the result in a decimal format. It also supports octal.


EasyCalculation.com is even an easy-to-use calculator. It will subtract, subtract, add, and multiply any hex values ​​you provide, and quickly display all the answers on the same page. Displays decimal next to hex answers.




Thank you for reading this blog.


Post a Comment

0 Comments