Convert Negative Decimal To Binary Without Using Calculator
I am using the decimal number system to perform calculations. But computers understand only binary. What is the method to convert negative decimal to binary easily?
I am using the decimal number system to perform calculations. But computers understand only binary. What is the method to convert negative decimal to binary easily?
You can use any of the methods given below. Decimal number system has a base of 10 while the binary number system has a base of 2 which means that only 2 symbols are available for notation which is ‘0’ and ‘1.’
1. By the trivial method, you can simply convert an n-bit unsigned integer to n-1 bit signed integer where the MSB denote the sign of the integer. 0 is used to denote positive and 1 is used to denote negative.
2. You can also convert a given number to its 1’s complement form to obtain the equivalent negative number.