Two's complement and one's opposite code calculator


result:

One's complement means that positive number = original code, negative number = inverted code. Two's complement refers to what is commonly referred to as complement.