Recent content by WaterRain
-
W
One's and two's complement arithmetic in decimal and binary
I'm not too sure either. To me, one's complement is simply the inversion of bits. While two's complement can represent negative values and work in addition/subtraction. I'm a little confused on what I wrote myself as well. Sure there's a better explanation somewhere..- WaterRain
- Post #4
- Forum: Programming and Computer Science
-
W
Converting Hexadecimal (base 16) to Octal (base 8)
I got it. I was showing what I did earlier which resulted in my mistake :)- WaterRain
- Post #14
- Forum: Engineering and Comp Sci Homework Help
-
W
One's and two's complement arithmetic in decimal and binary
Hi King, I'm very new to Complements as I just ask around recently - https://www.physicsforums.com/showthread.php?t=312168 Anyway, I would like to attempt on your problem. In dec, 47 - 28 = 19 In bin, 101111 011100 - 010011 and then performing the one's complement act: 1-0 = 1 1-1 = 0 1-1 =...- WaterRain
- Post #2
- Forum: Programming and Computer Science
-
W
Converting Hexadecimal (base 16) to Octal (base 8)
Thanks DoctorBinary. I fully understand where my mistake is now. .BE = .1011 1110 regroup = .010 111 110 Oct = .276 That's why I thought we can't apply the same to the fractional part. But now I got it. Thanks to mgb_phys and mathmate as well :)- WaterRain
- Post #11
- Forum: Engineering and Comp Sci Homework Help
-
W
Converting Hexadecimal (base 16) to Octal (base 8)
I see. This means if converting a single hex I can use as mgb_phys suggested right? example F(hex) = 17(oct). Anything more than one hex will not work. Like FFF(hex) = 7777(oct).- WaterRain
- Post #8
- Forum: Engineering and Comp Sci Homework Help
-
W
Converting Hexadecimal (base 16) to Octal (base 8)
I get it now - partially. FACE = 1111 1010 1100 1110 regroup = 001 111 101 011 001 110 Oct = 175316 But for .BE, it is not possible to do likewise but to use the method you suggest 0.BE = B/16 + E/256 Is this right?- WaterRain
- Post #7
- Forum: Engineering and Comp Sci Homework Help
-
W
Converting Hexadecimal (base 16) to Octal (base 8)
Does this only work for a single Hex?- WaterRain
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
W
Converting Hexadecimal (base 16) to Octal (base 8)
I realized I made a mistake. 0.742188 should give 0.574 instead. 1. Answer is 175316.57? 2. Any quicker way to convert from Hex to Oct?- WaterRain
- Post #2
- Forum: Engineering and Comp Sci Homework Help
-
W
Converting Hexadecimal (base 16) to Octal (base 8)
Homework Statement Convert the hexadecimal (base 16) value FACE.BE into octal (base 8), correct to 2 octal places. Homework Equations Nil The Attempt at a Solution First, I've converted the FACE.BE to decimals and I got 64206.742188 Next I change them to octal 64206(dec) =...- WaterRain
- Thread
- hexadecimal
- Replies: 13
- Forum: Engineering and Comp Sci Homework Help
-
W
Converting Negative Numbers to Four's Complement
How about dealing with negatives? Just treat them as positive? In my case, 4's complement of (–3042)5 4-3=1, 4-0=4, 4-4=0, 4-2=2 giving (1402)4s I'll get the answer with the method ignoring the negative.- WaterRain
- Post #6
- Forum: Engineering and Comp Sci Homework Help
-
W
Converting Negative Numbers to Four's Complement
Sorry, should I convert (–3042)5 to a decimal or binary before I proceed?- WaterRain
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
W
Converting Negative Numbers to Four's Complement
Thanks. I'll try again :)- WaterRain
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
W
Converting Negative Numbers to Four's Complement
Homework Statement Represent (–3042)5 in the 4-digit 4’s complement system.Homework Equations –X = R^n – X – 1The Attempt at a Solution 5^4 – 3042 – 1 = 625 – 3042 – 1 = ? Answer should be (1402)4s- WaterRain
- Thread
- Replies: 6
- Forum: Engineering and Comp Sci Homework Help