For decimal numbers, how does the 9s Complement representation operate?


numeric complement
-499,500
-498,501
..
-1.998
0999
00
11
.
498498
4999499

.
numeric complement expression
-499500
-498501
..
-1.998
0999
00
11
.

whether it can be considered that the artificial definition complement values from 0 to 999 correspond to 0-499, respectively; then whether the complement value of-998 is 9999-998-9001. But such a decimal complement is not in line with human logic: for an arbitrary three-digit number, if it is a positive complement, it is itself, and for a negative number b, 999b is used. but if it is defined in this way, the complement value of-998 is 1.

the complement value of-998 is also 1.

problem description

the platform version of the problem and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

C
Mar.21,2022
Menu