Recent content by ridecar2
-
R
How do I convert signed decimal to binary
Not quite, to save any issues on here (and make sure I'm not doing any homework) I'll use an example I'm making up: 0011 0110 1001 0011 1100 1001 0110 1100 - Flipped 1100 1001 0110 1101 - With the 1 added, and that's the -ve value of 0011 0110 1001 0011 using 2's complement.- ridecar2
- Post #8
- Forum: Engineering and Comp Sci Homework Help
-
R
How do I convert signed decimal to binary
Right, here's how it's done. 1) You were right to convert the +ve value to binary to give 000...010110 2) Flip the bits (every 1 becomes a 0) 3) add 1 to the answer. The bit that intrigued me was the adding 1 part but if we take 0 as an example and use 8 bits then: 0(dec) = 00000000(bin) flip...- ridecar2
- Post #6
- Forum: Engineering and Comp Sci Homework Help