notyabussines Posted February 21, 2013 Posted February 21, 2013 I have -103.44.... how do I convert this in twos complement? in the typical regular way like I do with the numbers without fraction?
pwagen Posted February 21, 2013 Posted February 21, 2013 First, find out what 103.44 (positive) is in binary. After that, it seems to be the simple matter of inverting the digits and adding one. So 3 to -3 would be 0011 -> 1100 -> 1101, for example. http://www.cs.cornell.edu/~tomf/notes/cps104/twoscomp.html#twotwo
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now