Greetings, I understand how to convert positive decimals to binary and vice versa, but I am not quite sure how to go about factoring in negative numbers with their binary equivalents. It must be 8 bits (therefore, the decimal outputs must range from -128 to 127). Please help!
PS: I am not allowed to use toBinaryString for reasons unstated.