Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - On the absolute value of binary negative numbers
On the absolute value of binary negative numbers
In general, the complement is not used for binary negative numbers, and it is only used inside the computer.

If someone says that 1000 00 1 is negative, it means-1. Therefore, it is enough to take the absolute value and clear the highest bit to 0.

Binary data are numbers represented by 0 and 1. Its cardinal number is 2, the carry rule is "every two enters one", and the borrowing rule is "borrowing one as two", which was discovered by the German master of mathematical philosophy Leibniz in18th century.

Extended data:

Reasons for adopting binary negative numbers:

The implementation of (1) technology is simple, and the computer consists of logic circuits, which usually have only two states, namely, the on-off state of the switch, which can be represented by "1" and "0".

(2) Simplifying operation rules: There are three combinations of sum and product operations of two binary numbers, and the operation rules are simple, which is beneficial to simplifying the internal structure of the computer and improving the operation speed.

(3) Suitable for logical operation: logical algebra is the theoretical basis of logical operation, and the binary has only two digits, which coincides with the "truth" and "false" in logical algebra.

(4) Easy conversion, and easy conversion between binary numbers and decimal numbers.

(5) Using binary to represent data has strong anti-interference ability and high reliability. Because each data has only two states of high and low, it can still be reliably distinguished whether it is high or low when it is disturbed to a certain extent.