News for hackers. Stuff that matters.
Re:Finally Getting Two's Complement by venusenvy47 on Monday June 26, 2023 @09:15AM (#36479304)
Did you calculate the 9's complement of 4583 in your head? I see that 5416 has individual digits that line up with 4583 to each equal 9, but I'm not clear if this is a coincidence that happens to work for this number, or if this is the way to calculate an arbitrary N's complement value.
Re:Finally Getting Two's Complement by Lukas_Skywalker on Wednesday June 28, 2023 @05:15AM (#36504127)
That is exactly the 9‘s complement. The digits add up to 9.
Re:Finally Getting Two's Complement by venusenvy47 on Monday July 10, 2023 @08:59AM (#36665716)
I thought there was more to the calculation of N's complement. Something about adding one to the result. It doesn't seem like something you can easily perform using inspection.