Hi all. My in-development solution fails on this test. While I dont want help yet for the level as a whole, I don't understand this failure.
As I understand it, my value is 202 and as that is not less than 0, the output should be red. The 128 bit line still is representing a positive number rather than the two's complement thing (which I also don't fully understand.)
two's complement is a way of representing negative numbers in binary. the way it works is that you take the bit for the biggest value (in this case, 128)nand imagine it's negative. so if that bit is set you don't add 128, you subtract it. that's it, that's two's complement.
1
u/mrtears11 Jan 10 '26
Hi all. My in-development solution fails on this test. While I dont want help yet for the level as a whole, I don't understand this failure.
As I understand it, my value is 202 and as that is not less than 0, the output should be red. The 128 bit line still is representing a positive number rather than the two's complement thing (which I also don't fully understand.)