[002] - Number Conversions across various Number Systems (Part 1)
Numbers are represented using a variety of number systems, including Binary, Octal, Decimal, and Hexadecimal. However, they can be easily converted from one number system to another using simple procedures. In this post, I shall discuss how to achieve this.
One of the most important number conversions is converting a number to its decimal equivalent, and it is achieved by taking the sum of the face values of various digits multiplied by the radix
raised to the power of the index of the digit, starting from right. Yes, interpreting the value of a number is same as converting it into decimal form. For example :



To convert a decimal number, separate the integer and fraction part and convert each part separately. For example:



Conversion from Decimal Numbers to Binary, Octal and Hexadecimal Numbers
The conversion from decimal to binary is done by repetitive division by 2 (the radix of binary). The procedure is simple - Take the binary number, divide it by 2, note the remainder, and divide the quotient again by 2. Continue until you get a zero as the quotient. Now, take the remainders, starting from the latest - stack them one after another and you get the binary number! Lets convert
to binary:

The elements in the second column contain the remainders obtained after repeated division by 2. Stack these remainders together, starting from down, to get the binary equivalent. Hence,

To convert a fractional decimal part to a fractional binary part, we repeatedly multiply the fractional decimal part by two, until we get 1.0 as the result. Remember, only the fractional part is to be multiplied by 2. As an example, lets convert
to its binary equivalent:

Here, the binary equivalent is obtained by stacking together the digits on the LHS of the decimal starting from the top. The first zero is ignored. Hence,

Hence, this is the way Decimal Numbers are converted to their Binary equivalents.
In order to convert Decimal Numbers to their Octal equivalents, replace 2 with 8 in the above calculations. Similarly, replace 2 with 16 for converting Decimal to Hexadecimal.
P.S. - My next post will deal with other conversions that are possible.
[001] - Number Systems
In our everyday lives, we use Decimal Numbers whenever we deal with them. That is, we use a number system in which the digits range from 0 to 9 – a total of ten digits (hence the name, decimal). However, there are many number systems that are in existence, and before we define them, let us take a look at the features that define a Number System.
Each Number System has a base, which is determined by the number of digits that make up that system. For example, the decimal number system consists of ten digits; hence, its base is ten. Base is also known as the radix, and is denoted by the letter r.
The value of a number in a number system is interpreted as the sum of the face values of various digits multiplied by the radix raised to the power of the index of the digit, starting from right. For example, to interpret the value of the decimal number 465, we may write:

In order to distinguish between various number systems, the digits of the number are enclosed in parenthesis, and its radix is inserted as the subscript. For example, we may write
to denote the decimal number 465.
Various Number Systems
As stated before, there are a variety of Number Systems, decimal being one of them. Let us learn about all of them.
Binary Number System
As the title suggests, the Binary system consists of only two digits, 0 and 1. Its radix, therefore, is two. This number system is used in all kinds of electronic devices to perform various computations. To interpret its value, we will write:

Octal Number System
This system has a radix of 8, so the digits range from 0 to 7. Its value is interpreted in pretty same way as the other systems. For example:

Hexadecimal Number System
The hexadecimal number system has a radix of 16, and the digits now range from 0 to 9, and afterwards from A to F. Here, A to F represent the decimal 11 to 15. The value of a hexadecimal number will be interpreted like this:

These are the number systems that exist. My next post in this series will deal with converting numbers from one number system to another.
How to find your way here?
This blog has been divided into multiple categories, each corresponds to a specific subject, or rather a specific teacher teaching a specific subject. You will find the following categories here:
- Physics 2.1 - Mathematical Physics
- Physics 2.2 - Thermal Physics and Optics
- Physics 2.3 - Physics Laboratory
- Mathematics 2.1
- Mathematics 2.2
- Computer Science 2.1 - Data Structures and C++
- Computer Science 2.2 - Computer System Architecture
- Computer Science 2.3 - Computer Science Laboratory
- Extras! - Everything that doesn’t belong to above!
The scope of Extras! category is somewhat broad. Everything that is not a part of the official subject matter will be posted here. So, you will have to keep checking for that!
Update : The Mathematical Physics portion of the syllabus has been deleted.
Hello World!
Nah… This is not the usual Hello World post that comes free with a default WordPress installation. This is an unusual Hello World post that I am writing so that you people know the purpose of this blog. Trust me, this is gonna help you guys!
APS 2.0 is an experiment with series writing. For the uninitiated, series writing is a type of blogging where a writer, or a blogger in this case, writes a number or articles (posts) that pertain to a single topic. Since series writing involves a lot of effort, I am saying that it is still an experiment. I may not continue, but I really want to give it a shot!
And I bet that you are confused about the title, right? Well, I am a student of Applied Physical Science, 2nd Year, at the University of Delhi. Here, I shall be blogging about what I learn in college, hence the title!
Applied Physical Science is a general science course, where students are taught just about everything relating to science. In the First Year, the subjects include Physics, Chemistry, Mathematics, Computer Science, Electronics, Biology, Environmental Science, and English. There are 12 papers in the First Year, which include six theory and six practical papers. I shall not be discussing anything regarding subjects in First Year.
In the second year, the workload is somewhat less. The subjects include Physics, Mathematics, Computer Science, and Economics/Financial Accounting (There’s a choice between the last two). There are Eight papers in second year - six theory and two practicals. It is the second year course material that I will be dealing with. For all those Academically Oriented people, this will be a treat!
OK… Enough of blabbering now. I shall be working on the details for some time more, before putting the next post live. Till then, stay tuned!
P.S. : My next post will be about how to find your way here.










