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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e46987-4c2d1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e46987-4c2d1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?