Conversion into binary

please help me I am confused between conversion. I did not have cs in class 12 .how to write 128 in binary.is 128 in decimal number by default?how did sir calculate it as 10000000 . will it not be done by dividing by 2 and seeing remainders and multiplying by 10powers. please clear this confusion.

look at the steps showing the conversion of 128 from decimal to binary.

Step-1

Identify the base of the required number. In this case, the base of 128 is 10, i.e., 1281012810.

Step-2

Divide the given number 128 by the base of the required number, i.e. 2

Step-3

Note down the quotient and the remainder.

Step-4

Divide the number 128 until we get the quotient to be less than the base which is 2

Step-5

Read all the remainders including the last quotient from bottom to top.
Repeat this process (dividing the quotient again by the base) until we get the quotient to be less than the base which is 2


1281012810 in binary is 100000002100000002

1 Like