Base Conversion in number system

We have different number systems for our calculations. Most popular one is decimal system which is of base 10. In digital mathematics we use binary system of base 2. Similarly we use octal system with base 8. Hexadecimal system uses 16 as base. For colour specifications in our HTML codes we use Hex numbers. For example to display blue background color we have to use hex code #0000FF. This is same as Red =0 , Green =0 and blue =255 in decimal system.  

We will learn how to convert numbers from one system to other by using JavaScript different functions.

  Here is table to give you idea on how the number system changes with different base values. 
DecHexOctBinary
0000
1111
22210
33311
444100
555101
666110
777111
88101000
99111001
10a121010
11b131011
12c141100
13d151101
14e161110
15f171111
16102010000


plus2net.com




Post your comments , suggestion , error , requirements etc here .




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer