![]() |
|
|
#1 |
|
"Daniel Jackson"
May 2011
14285714285714285714
769 Posts |
Can someone tell me how to convert this number to decimal? I can't find a program that can convert it. Why can't I paste the whole number into Yafu? It keeps cutting off the last 1401 bits and when I try to type them in manually, it won't let me. Why?
![]() Code:
100000000101110100110100010010101011010001101000101000001101010011010001010100101101000011010001010010101101001001110100101001001011101010001110101010010010101110101010011010001010001010110100000110100100000101011010001001110100101000010101110100100011101001010100001011101001010011010000100001110101000011101010000100100111010001010101101010010101101000001101010100101101001001000110100000000110100000011101010010101010111010000100111010010101010101010111010000101010111010000101000101110100010100110100100001010011010010100100110100100010110101000101110100100101011101001010001110101001010010011101010101000011010010101010111010100100010110101000010110101000100110101010101000101101001010100100101101010010010111010101001010111010100101001101010100001110100010010010101110101010010101110101010000011101010010000011010101010010111010100101011010001001000111010000000111010010100101010101110100101001001010111010000010101110100001000111010000010101001110100001010011101000001000101110100010000111010000100101001110100010000101101000101001011101000101001011010010000010110100010101001001101000101010101110100100000111010010010101010111010101010011010010001010110100100100101101000000010110100000100011010000010010110100000000011010010100010111010010101000110100101001010110100000100111010010101001011010010011101010000001010111010100000011010101000101010110100101010110101000010101110101001001010111010100010010110101001000010111010000001110101001000101101010010100110101010001011101010010100101110101010000010111010101000001011101000000111010101000010101110100101010110101010000101110101000101010111010101001001011101010101000011101010000000111010010010000110100100100010110101010101001110100000000101101001000011010101010100101110100100001101001000101010111010000100011101000100001110100001101000000010110100000100101110101010010101011010001000100101110100000100111010101001101000001010101101000010000111010010000100011101010101010100111010000100100111010001001000011101000010100101101000010100001110101010101010111010001001001101000100100110101001010010111010001000101011101000000011101000100100101110100110100100100001011010101010011010001010001011101000011010100001000101101010011010101001010010110101010011010010010101110100110100100000101101000101010100011101001000010101101000000100110100100010010111010010000110101000001001011101001001010011010010010101011010011010010010100101101001101001010000010110100100000111010100100110101010100001011101001010000101110100101010101110101000100101101001001110100101010001011101000100111010100001011010010011101001010101010111010010001110100101010100101110100100011101010000010101011100110101000001011010010011101010000001011101001011010100000101011010010100101110101000010010111010000110101000100001011010100110101000100010110101010100101110101000101001011010001010101011101001000010101101010001011101010010010101011101010100100101110101000111010100011101010010010010111010100011101010010100010111010100010111010100001001011101010001110100010100010111010010100101110101001010100101110100101010101010110101000010101010110100001001110100001010101010111010101000101011101010100010101110100000011101010100010010111010000001110101010010001011101010000001101010000101101000000111010010000001011101010001110101001000101011101010011010101010001010110100000110101010100101010110100000010011010101010010011101010011010101010010010110101001101001001001110100000110101010101001010110101000100110100010100101010111010000011010101010101001011010001000111010001010101010101101000100011101000010101110100010010000111010011010000000100111010000001001011101000100010100111010000001001011101001010101010010110100001010101011101000100101001011101000001000101110101010010110100010001001110100000100101011101000000101010110100001000111001111010000100000111010000100100111010000010100101110100000101001011010000100010101110100001000100110100010000111010111101000010010010111010000100100101110100000001010111010000101010001101000100101110100001000001110100001001110100010000010111010101001011010001000001011101000010101010111010000001010101110100010000101011101000100001010111010010000011101010010010011010000001010111010001000100101110101010000111010100101011010010101010000110100000101001101000000011101000001001001110100101101001000101001011010101001101000101001001011010101001101000101010001011001101010010010111010101001101000101010101011001101010001010101100110100100010101010111010001000111010010010101010101101001010010100011010010000001011101000001101010100101010101101001010101101001000100010111010001010101101010000010101101000100000110100100010101101000010011101010010101010101110100101101001001000101011001101001001001010101110100110100100100101011010010110100100100100101101001011010010010100010110011010010010100101011101000101011101001001011100110100100101010010111001101001010001010101110100010001110100001010010110100101000101110100101000101011010001001110100101000100101110100010011101001010010001011100110100100010001110100010011101001010010101011100110100101000001110011010101010101101000000011101001010100101010111010010001110100101010010101110011010000101001001100110101000001101000000011101001010101001010111001101010001000011010000000111010001001010101011101000100011101010101010101010110100001001110100100010010101110100101010001001101010000000101101001001110101000010101110100100001101010000000101101001000111010100100101110100001101010000101010110101000101110101000010100101110101000101110101000101010101110011010100010101101000011010100010010100 |
|
|
|
|
|
#2 |
|
"Robert Gerbicz"
Oct 2005
Hungary
66916 Posts |
In python:
Code:
def conv(x):
ret=0;p=1
while x>0:
ret+=p*(x%10);x//=10;p*=2
return ret
|
|
|
|
|
|
#3 | |
|
"Forget I exist"
Jul 2009
Dartmouth NS
8,461 Posts |
Quote:
Code:
14489710670678635154396790079231422475904721345113119262216289593213010118808482180620967227264718731288886916764453766557535253112289385628235430035685103415108171315379506692713884956977194093869451479977164567655590589366921042122339671891877583771092652881851051011641111978903781433074829792066193506040863107250069969059664641303166095328284261417638659434468302113960525469372859843676344314666965646146907426842950119480690368744719186181280048642154684357702985521595195268830246159172792708984538318959309229422691400290096334675124345146929045462108965961569930253977577929139521813268408955978043828875865660038987141927843407809666541765192402603547454405437251839828856550874844702711350268168444599778748821068610942088737391752810356256038875061627741279885545646312850578475029130887798105561586482289652284714572386236665221312245511063620415022170675267612062164723350091271704328429739084694374852875088857580124971654182480844153077508528908266903497132583148599819005246019467476275448324345495447220413573708005787132171393645240283964972433978052182618805971412003486013401737935180689468348255748511624030987327877993811635477183308110713408185642664443262821957421629199573391994090193636838125988873120302909809761844168960069644984154608060863768597987862705337646993242038943238214029239370463856949640689917954191071222140551634974666545933579975969465681963815297025452620034803335747269552117144900739288697959840689799949113248058749753376795028089033314155001210277679833376281450910893304441014485247847584230506363250250726101863457262844008129142610551604615330366703991378279496275009852859210020027303960373891278996 Last fiddled with by science_man_88 on 2012-02-06 at 23:45 |
|
|
|
|
|
|
#4 |
|
"Robert Gerbicz"
Oct 2005
Hungary
3×547 Posts |
Interesting, here python 3.1 also cuts the number at 4092 bits. That is close to 2^12 bits.
Last fiddled with by R. Gerbicz on 2012-02-06 at 23:58 |
|
|
|
|
|
#5 | ||
|
"Forget I exist"
Jul 2009
Dartmouth NS
100001000011012 Posts |
Quote:
Quote:
Last fiddled with by science_man_88 on 2012-02-07 at 00:18 |
||
|
|
|
|
|
#6 |
|
"Serge"
Mar 2008
San Diego, Calif.
32×7×163 Posts |
BUFSIZ is probably 4096 on most systems.
Paste in tcsh in SuSE only agrees to paste 4096 symbols; it is a good thing that some other limits in modern linux are not 4096 (e.g. command-line length limit; on SGI IRIX it was ridiculously small) |
|
|
|
|
|
#7 |
|
Mar 2006
Germany
2×1,531 Posts |
This link/tool can handle such long numbers, too.
|
|
|
|
|
|
#8 |
|
Romulan Interpreter
"name field"
Jun 2011
Thailand
41×251 Posts |
You can copy and paste it in excel and use MID/CHOOSE functions to get the hex of it (direct convert them 4 by 4 into the hex digit, one line function), you get something like 805D344AB46.... which is 1374 digits long and that can be feed to yafu, pari/gp, or the tool linked by karbon (which has a 2000 digits limitation, too, it can't handle the binary part). It took me a minute and I got same result as sm88 above.
|
|
|
|
|
|
#9 |
|
Mar 2006
Germany
2×1,531 Posts |
|
|
|
|
|
|
#10 |
|
Romulan Interpreter
"name field"
Jun 2011
Thailand
41·251 Posts |
Strange... This I get if I paste directly:
Code:
ERROR The requested URL could not be retrieved While trying to retrieve the URL: http://wims.unice.fr/wims/wims.cgi?session=Q19BCBC2B4.1&lang=en&cmd=reply&module=tool%2Fnumber%2Fbaseconv.en&input=100000000101110100110100010010101011010001... <etc, cut by LaurV> The following error was encountered:
|
|
|
|
|
|
#11 |
|
Einyen
Dec 2003
Denmark
22×863 Posts |
Your number is 5496 binary digits. Here is the number I get with GMP. It's 1655 digits long which sounds right since 25495 = 1.44*101654:
Code:
14489710670678635154396790079231422475904721345113119262216289593213010118808482180620967227264718731288886916764453766557535253112289385628235430035685103415108171315379506692713884956977194093869451479977164567655590589366921042122339671891877583771092652881851051011641111978903781433074829792066193506040863107250069969059664641303166095328284261417638659434468302113960525469372859843676344314666965646146907426842950119480690368744719186181280048642154684357702985521595195268830246159172792708984538318959309229422691400290096334675124345146929045462108965961569930253977577929139521813268408955978043828875865660038987141927843407809666541765192402603547454405437251839828856550874844702711350268168444599778748821068610942088737391752810356256038875061627741279885545646312850578475029130887798105561586482289652284714572386236665221312245511063620415022170675267612062164723350091271704328429739084694374852875088857580124971654182480844153077508528908266903497132583148599819005246019467476275448324345495447220413573708005787132171393645240283964972433978052182618805971412003486013401737935180689468348255748511624030987327877993811635477183308110713408185642664443262821957421629199573391994090193636838125988873120302909809761844168960069644984154608060863768597987862705337646993242038943238214029239370463856949640689917954191071222140551634974666545933579975969465681963815297025452620034803335747269552117144900739288697959840689799949113248058749753376795028089033314155001210277679833376281450910893304441014485247847584230506363250250726101863457262844008129142610551604615330366703991378279496275009852859210020027303960373891278996 Last fiddled with by ATH on 2012-02-07 at 10:34 |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| very long binary representation to decimal | davar55 | Programming | 24 | 2014-12-07 00:19 |
| Convert Binary to BCD code | tinhnho | Miscellaneous Math | 8 | 2005-09-18 15:14 |
| Binary representation prime number of 1's. | TTn | 15k Search | 0 | 2004-12-18 21:10 |
| decimal-binary prime pairs | ixfd64 | Math | 2 | 2003-10-16 13:40 |
| Converting big numbers to and from binary and decimal | Quantum Skyline | Math | 5 | 2002-12-27 19:23 |