1.

Raj wants to convert binary number to decimal number system. Binary number system is abase 2 number system. It uses only 2 symbols to represent all its numbers i.e. 0 and 1Build an algorithm for this conversion​

Answer»

Explanation:

Example Binary number 1101011

Now we will CONVERT the given binary number into decimal using the EXPONENT power of 2 STARTING from 0 (till number of DIGITS in given binary number)

(1*2^6)+(1*2^5)+(0*2^4)+(1*2^3)+(0*2^2)+(1*2^1)+(1*2^0)

=64+32+0+8+0+2+1

=107



Discussion

No Comment Found