Recent Post

Decimal to Binary Conversion and vice versa

Decimal to Binary Conversion

Decimal Number: The number which are formed by the number 0,1,2,3,4,5,6,7,8,9 are called decimal number. Ex: 16, 32, 128, 1001 etc.

The base of decimal number is 10. (255)10

Binary Number: The number which are formed by 0 and 1 only are called Binary number. Ex: 1011, 0011, 1010 etc.

The base of binary number is 2. Ex: (1010)2

Conversion: 
convert (255)10 into Binary number






The binary code of the 255 is 11111111. always write your answer from bottom to top.



Binary to Decimal conversion

Take a binary number 101101
Mark number from 0 to N




Now ,

1*2^5+0*2^4+1*2^3+1*2^2+0*2^1+1*2^0

= 32+0+8+4+0+1
=45

No comments