Your Ad Here
String Function
Execute String Function Online
String Functions Online Tool

January, 2010 - String Function Blog

Archive for January, 2010

 

What is Binary, Octal and Decimal?

Monday, January 25th, 2010

The concept of binary systems is based on the existence of two clearly defined and opposite states. Examples of binary states include: TRUE or FALSE; ON or OFF; and OPEN or CLOSED. In number systems, the values zero or one (0 or 1) are used for differentiating logic conditions and performing numeric functions.


Binary values are essential for the operation of computer-based systems. Reduced to its minimum functions, a computer can do only two things: add numbers and compare values – albeit very quickly. Every other computer function can be reduced to one of these two operations. In the case of arithmetic calculations, all computations are a function of addition. Subtraction is addition of negative numbers, multiplication is simply multiple addition operations, as division is multiple negative addition operations.

With one switch, two values can be represented: either zero or one. With two switches, 4 values can be represented: 00, 01, 10 and 11. With three switches, eight values are possible: 000, 001, 010, 011, 100, 101, 110, and 111. Because of the two value nature, this is referred to mathematically as “Base 2.”

Octal – or Base 8 – is the specific case of three switches – the numbers 0 through 7 are the single digit representation of the value. Without going into detail, four switches would be used to represent a single digit hexadecimal – or Base 16 – value. Decimal numbers – Base 10 – are not conveniently possible to represent without a conversion from either binary, octal or hexadecimal numeric value to an easily-grasped human number. These conversions are typically integral to every computer language by use of string operations. Since computing is a two-way process involving input and output, there are binary to decimal functions as well as decimal to binary functions.
Learn how to convert binary and decimal values

Working with long strings of ones and zeroes is a tedious process, thus the use of octal and hexadecimal symbols allow values to be more readily perceived by humans. The existence of decimal numerals is solely for the comfort of humans; they are a time- and resource-consuming inconvenience for a machine. Low-level microcode and assembly languages are generically referred to as machine code because they communicate directly with the computer without unnecessary conversion to a decimal number.


Decimal to binary conversion tools are readily available. The Microsoft operating systems – as well as virtually every other graphical user interface – have a calculator as part of the O/S package. In the case of MS Windows, the calculator has two views. One is a common function decimal calculator, the other is a more sophisticated scientific view. The second option has the ability to convert decimal to either binary, octal or hexadecimal and to perform any number of common calculations and functions in any of those formats. Handheld calculators designed for use by the engineering sciences routinely include these functions as well.

On-line tools for similar or more complex conversion of binary to decimal and decimal to binary conversion are readily available. Usually, these tools are for the more complex computer-oriented functions such as converting a numeric value to a code – such as ASCII letters and symbols – and back. Binary numbers – in hexadecimal format – are commonly used to represent levels of red, green and blue (RGB) colors.

Converting binary to decimal – commonly seen as “bin to dec” and “dec to bin” is neither difficult nor complicated once the concepts are understood.
Learn binary and decimal conversions

VN:F [1.7.0_948]
Rating: +7 (from 7 votes)

 

Convert Binary and Decimal Values

Friday, January 15th, 2010

Decimal to Binary conversion is accomplished easily by determining whether the decimal number is odd or even, then successive division by 2, recording the result in binary form.


Convert Decimal to Binary

Try our Decimal to Binary Converter
As an example, the decimal number 153 is odd.

  • The rightmost binary digit – known as the Least Significant Digit or LSD – would be a “1”. If the number had been even, as 152, the LSD would be a “0”. As we record “1″ for the LSD, we now have to divide 152 (153-1)
  • Divide the remainder (152) by 2. If the result is even, record a “0” to the left of the LSD. It is in this example, leaving 76, and the binary string is now “01”.
  • 76 is evenly divided by 2, leaving 38, so record a “0”, the resulting binary string now being “001”.
  • Divide again, resulting in an odd number, 19. Record a 1, subtract the 1 from 19 and result is now “1001.”
  • Divide 18 by 2, resulting in 9. Again, it’s odd, record a 1, subtract the 1 from 9, leaving 8, the binary string is now “11001”.
  • The number 8 is evenly divisible, record a 0, resulting string is now “011001″
  • Divide 4 by 2, leaving 2, which is also even. Resulting string is now “0011001”.
  • Divide the 2 by 2, resulting in 1. Record this as the last and Most Significant Digit. The final result is the binary string “10011001” which is the representation of the decimal number 153.

Convert Binary to Decimal

Try our Binary to Decimal converter
Conversion of binary to decimal values is equally simple.

  • Start at the least significant (rightmost) digit 10011001 is odd, record a 1.
  • The next leftmost bit is the number of 2s, which is none.
  • The next is the number of 4s. Again, none.
  • The next leftmost is the number of 8s. There is one, so record an 8.
  • The next left bit is also a 1, which the number 16s. We now have recorded 1+8+16 so far.
  • The next bit is the number of 32s, none.
  • The next is the number of 64s, again none.
  • The last, most significant digit is the number of 128s. We have 1, record that.
  • Now add the decimal numbers together 1+8+16+128, resulting in the decimal number 153.

These methods are just two of several ways to accomplish the conversion. There are tables and charts which can assist in binary to decimal conversion online, as well as the opposite decimal to binary conversion. The two methods given above have the advantage of being easily done in your head without a tool, since the processes are simple addition and easy division by twos.

VN:F [1.7.0_948]
Rating: +9 (from 9 votes)

 

Convert Binary and Hexadecimal

Tuesday, January 12th, 2010

Hi guys,

Sometimes, videos make it easier to understand things. Here’s a video that explains how to convert hexadecimal to binary and how to convert binary to hexadecimal.


Enjoy!

VN:F [1.7.0_948]
Rating: +8 (from 8 votes)