Well, I did understand it, but I just wanted to find a way how. Beside just finding the 10's complement and subtracting 1 isn't really that complex, just a little more work.You then take one away to get 781, the 9's-complement. But why didn't you just calculate the 9's-complement directly, like the example shows? It's as if you read a simple example and can't simply follow it as given. You add complexity that simply isn't there in the original.
Actually, I used the ~ and added ten to each digit since a ~digit tends to equal a negative number.
Last edited: