Name: Anonymous 2011-11-22 4:08
Hi /prog/
How does one represent negative numbers in hex/octal, for example -15. Would the hex value be F1 or -0F? In the example i'm given it says -15 is F1, but I dont see how the sign is represented, shouldnt F1 be +241? How do you signed hex/octal, with '-' or is there some sort of 2's compliment equivalent i haven't grasped?
How does one represent negative numbers in hex/octal, for example -15. Would the hex value be F1 or -0F? In the example i'm given it says -15 is F1, but I dont see how the sign is represented, shouldnt F1 be +241? How do you signed hex/octal, with '-' or is there some sort of 2's compliment equivalent i haven't grasped?