DECIMAL TO BINARY CONVERSION USING MAGIC BLOCK:-
| | | | | | | |
example :- Convert the following decimal numbers to binary form a) 27 b) 125
using short trick :-
| | | | | | | |
16+8+2+1=27 in binary form - (11011)
Fill 1's and 0's in the block to make sum equal to 27
b) 125
| | | | | | | |
64+32+16+8+4+(2*0)+1=125 binary form = (1111101)