r/programminghomework • • Nov 15 '17

Need Help With Binary and showing the conversion process

Decimal Binary Conversion Process 115 1110011 115/2=57 R1, 57/2=28 R1, 28/2=14 R0, 14/2=7 R0, 7/2=3 R1, 3/2=1 R1, 1/2=0 R1 So, from last to first, the binary would be 110011

100 1100100 32 1000000 1000 01111101000 99 01100011 256 100000000 111 01101111 1024 10000000000 108 01101100 112 01110000 27 011011 96 01100000 46 0101110 48 0110000

Binary Decimal Conversion Process 1101001 105 (1101001)2 = (105)10 or 64+32+8+1=105 100 4 0100000 32 110110 54 1110011 115 1111000 120 1101001 105 101 5 10000 16 1101000 104 1010100 84 1111 15 1100 12 10101 21

1 Upvotes

2 comments sorted by

0

u/[deleted] Nov 16 '17

[deleted] — view deleted comment

1

u/dhantiger Nov 16 '17

I have to convert decimal to binary and then binary to decimal and have to show the conversion process. I don’t know how to do this at all. I’m just not getting it. I used an online conversion calculator to get the numbers in the correct format but I don’t know how to actually show the conversion process

0

u/[deleted] Nov 17 '17

[deleted] — view deleted comment

1

u/MurtBacklin-BFI Nov 19 '17

This . It really helped me to walk through example binary numbers in ascending order. Maybe look up a few binary number examples and do a bit more work with binary and it'll come to you :)