| | |
How to Converty Binary String of Length 1024 to Decimal Number
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jan 2008
Posts: 10
Reputation:
Solved Threads: 0
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.
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.
>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.
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.
![]() |
Other Threads in the C Forum
- Previous Thread: printing hello world
- Next Thread: Random number generation
| Thread Tools | Search this Thread |
#include adobe ansi array arrays asterisks binarysearch calculate centimeter changingto char convert copyimagefile cprogramme creafecopyofanytypeoffileinc csyntax database directory dynamic fflush file fork forloop framework frequency getlasterror givemetehcodez grade graphics gtkgcurlcompiling hacking hardware highest histogram inches include incrementoperators input iso kernel km linked linkedlist linux linuxsegmentationfault list lists locate logical_drives looping loopinsideloop. lowest match matrix microsoft motherboard multi mysql number opendocumentformat opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scanf scripting segmentationfault sequential shape socket socketprograming stack standard string strings structures systemcall testing threads turboc unix user variable voidmain() wab windows.h windowsapi






