Home  >  Article  >  Convert the decimal number 59 to an unsigned binary integer

Convert the decimal number 59 to an unsigned binary integer

尚
Original
2019-06-11 11:31:2854750browse

Convert the decimal number 59 to an unsigned binary integer

The decimal number 59 is converted into an unsigned binary integer which is 111011.

Calculation method:

59/2=29 more than 1,

29/2=14 more than 1,

14 /2=7 more than 0,

7/2=3 more than 1,

3/2=1 more than 1,

1/2=0 more than 1,

The reverse order of the remainder is the result 111011.

Signed numbers: The highest bit represents a symbol, not a number. The highest bit is 1, which means the number is negative; the highest bit is 0, which means the number is positive. Signed numbers can represent positive or negative numbers. For example, for a signed number 100, the leftmost (high-order) 1 indicates that the number is a negative number, and the remaining two digits 00 represent a decimal number of 0, so this number represents -0.

Unsigned number: can only represent positive numbers. For example, 100 represents 4 in decimal.

Convert decimal to binary unsigned number: Convert a positive decimal number to binary. Just divide the decimal number by two and take the remainder.

Related recommendations:Convert decimal 60 to unsigned binary

The above is the detailed content of Convert the decimal number 59 to an unsigned binary integer. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn