Back to General discussions forum
Problem #81 Bit Count depends on negative numbers being represented in two's complement format. While that is the format used by most computer systems today, it is not universal. For example, IBM z/OS systems use sign-magnitude representation.
I am not complaining. It added an interesting side-quest to the problem. But it might be worth noting in the problem text.
Never mind.
IBM z/OS does use two's complement format for negative numbers. I was misinterpreting the language reference manual and my two's complement side quest was unnecessary.