| | |
Help With Decimal to Binary conversion
![]() |
•
•
Join Date: Apr 2005
Posts: 11
Reputation:
Solved Threads: 0
One of my course assignments it to be able to convert between decimal and binary.
One of the questions is convert 42.25 from Decimal to Binary
I get the answer 10101010 but i'm not sure if im right as i checked it on the internet and got the answer 101010.
for some reason i have 2 extra digits can anyone point me in the right direction.
any help would be much appreciated
Thanks Liam
One of the questions is convert 42.25 from Decimal to Binary
I get the answer 10101010 but i'm not sure if im right as i checked it on the internet and got the answer 101010.
for some reason i have 2 extra digits can anyone point me in the right direction.
any help would be much appreciated
Thanks Liam
First of all, it's rounded to 42.
think about the values of binary:
That should kind of show you what's going on. If you've got any questions, let me know. For your reference, 10101010 is equal to 170.
think about the values of binary:
32 16 8 4 2 1 1 0 1 0 1 0
That should kind of show you what's going on. If you've got any questions, let me know. For your reference, 10101010 is equal to 170.
Alex Cavnar, aka alc6379
•
•
Join Date: Feb 2006
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by hammondlj
One of my course assignments it to be able to convert between decimal and binary.
One of the questions is convert 42.25 from Decimal to Binary
I get the answer 10101010 but i'm not sure if im right as i checked it on the internet and got the answer 101010.
for some reason i have 2 extra digits can anyone point me in the right direction.
any help would be much appreciated
Thanks Liam
I m maunty .I have a formula for converting any decimal number to binary . You can use this formula.that is 8421 if you have no 15 the use of formula
[B]
8+4+2+1=15 in this formula i use all the numbers of formula. the binary number is 1 1 1 1,because
8 4 2 1
1 1 1 1
other example
9
in no 8421 the combination of 9 is 8+1=9
the binary would be 1 0 0 1
84 2 1
•
•
Join Date: Apr 2006
Posts: 4
Reputation:
Solved Threads: 0
hai friend,
the way to convert a decimal to bianary is:
convert the integral part to binary: binary of 42=101010
method of converting the decimal part:
multiply the decimal by 2 & take the integral part
.25*2=.5 0
.5*2=1.00 1
process terminates when decimal part turns to 0
ans=101010.01
if you are not satisfy with answer
mail me papu_sandip@rediffmail.com
the way to convert a decimal to bianary is:
convert the integral part to binary: binary of 42=101010
method of converting the decimal part:
multiply the decimal by 2 & take the integral part
.25*2=.5 0
.5*2=1.00 1
process terminates when decimal part turns to 0
ans=101010.01
if you are not satisfy with answer
mail me papu_sandip@rediffmail.com
•
•
Join Date: Aug 2009
Posts: 3
Reputation:
Solved Threads: 0
Converting decimal to binary
To convert decimal to binary is also very simple, you simply divide the decimal value by 2 and then write down the remainder, repeat this process until you cannot divide by 2 anymore, for example let's take the decimal value 157:
157 ÷ 2 = 78 with a remainder of 1
78 ÷ 2 = 39 with a remainder of 0
39 ÷ 2 = 19 with a remainder of 1
19 ÷ 2 = 9 with a remainder of 1
9 ÷ 2 = 4 with a remainder of 1
4 ÷ 2 = 2 with a remainder of 0
2 ÷ 2 = 1 with a remainder of 0
1 ÷ 2 = 0 with a remainder of 1
Next write down the value of the remainders from bottom to top (in other words write down the bottom remainder first and work your way up the list) which gives:
10011101 = 157
To convert decimal to binary is also very simple, you simply divide the decimal value by 2 and then write down the remainder, repeat this process until you cannot divide by 2 anymore, for example let's take the decimal value 157:
157 ÷ 2 = 78 with a remainder of 1
78 ÷ 2 = 39 with a remainder of 0
39 ÷ 2 = 19 with a remainder of 1
19 ÷ 2 = 9 with a remainder of 1
9 ÷ 2 = 4 with a remainder of 1
4 ÷ 2 = 2 with a remainder of 0
2 ÷ 2 = 1 with a remainder of 0
1 ÷ 2 = 0 with a remainder of 1
Next write down the value of the remainders from bottom to top (in other words write down the bottom remainder first and work your way up the list) which gives:
10011101 = 157
•
•
Join Date: Aug 2009
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
One of my course assignments it to be able to convert between decimal and binary.
One of the questions is convert 42.25 from Decimal to Binary
I get the answer 10101010 but i'm not sure if im right as i checked it on the internet and got the answer 101010.
for some reason i have 2 extra digits can anyone point me in the right direction.
any help would be much appreciated
Thanks Liam
![]() |
Similar Threads
- Convert decimal to binary and with base the 8 (C)
- decimal to binary conversion (C++)
- Help! Decimal to binary conversion (C)
- decimal > binary > Oct > Hex (C++)
Other Threads in the IT Professionals' Lounge Forum
- Previous Thread: Blackberry Apps Competition
- Next Thread: Will anyone Digg advertising?
| Thread Tools | Search this Thread |
1gbit advertising advice amazon answers archive british broadband business businessprocesses career carrier censorship cern china cio collectiveintelligence connectivity consumer consumers corporateearnings datatransfer debtcollectors dictionary digg digital ebay ecommerce email employment environment facebook food government grid high-definition hottub infodelivery infotech intel internet interview ipod isp japan kindle lhc library malware marketing mit moonfruit news onlineshopping piracy piratebay pope porn program questions r&d religion remoteworking research retail security sex shopping simple skype smallbusiness smb sms socialmedia socialnetworking software softwareengineer spam speed spending startrek statistics stocks study stumbleupon survey tabletpc technology touch-screen touchscreen twitter uk videoinprint voips web webdeveloper windows words






