How to Converty Binary String of Length 1024 to Decimal Number

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2008
Posts: 10
Reputation: mohanvamsi_18 is an unknown quantity at this point 
Solved Threads: 0
mohanvamsi_18 mohanvamsi_18 is offline Offline
Newbie Poster

How to Converty Binary String of Length 1024 to Decimal Number

 
0
  #1
Mar 25th, 2008
How to Convert Binary String of Length 1024 to its Respective Decimal Number.

for example
101 of length 3 and the respective Decimal Number is 5
10111 of length 5 and the respective Decimal Number is 23
like this .. i have a binary number of length upto 1024 ...

The resultant decimal number range is more than the builtin data type ranges.

So how can i made calculations on numbers out of Builting data types ranges.

Please Tell me...

Thank you in Advance.
Last edited by mohanvamsi_18; Mar 25th, 2008 at 1:52 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,783
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 745
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: How to Converty Binary String of Length 1024 to Decimal Number

 
0
  #2
Mar 25th, 2008
>So how can i made calculations on numbers out of Builting data types ranges.
Use an arbitrary length math library such as GMP, or write your own.
Last edited by Narue; Mar 25th, 2008 at 9:57 am.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 10
Reputation: mohanvamsi_18 is an unknown quantity at this point 
Solved Threads: 0
mohanvamsi_18 mohanvamsi_18 is offline Offline
Newbie Poster

Re: How to Converty Binary String of Length 1024 to Decimal Number

 
0
  #3
Mar 28th, 2008
Is There any code with u ......

please give me ....
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,783
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 745
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: How to Converty Binary String of Length 1024 to Decimal Number

 
0
  #4
Mar 28th, 2008
>please give me ....
No. Do it yourself and I'll help you fix any problems. But I won't do your work for you.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 10
Reputation: mohanvamsi_18 is an unknown quantity at this point 
Solved Threads: 0
mohanvamsi_18 mohanvamsi_18 is offline Offline
Newbie Poster

Re: How to Converty Binary String of Length 1024 to Decimal Number

 
0
  #5
Mar 28th, 2008
Originally Posted by Narue View Post
>please give me ....
No. Do it yourself and I'll help you fix any problems. But I won't do your work for you.
TanQ........

i will try for it ......
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC