Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
best language for very large numbers
Name: Mechanix2Go Date: May 27, 2009 at 09:58:45 Pacific OS: 2K SP4 CPU/Ram: AMD Ath 64X2 2GB Product: Clone / X Subcategory: General
Comment:
Any advice?
TIA
===================================== If at first you don't succeed, you're about average.
Name: cyoung311 Date: May 27, 2009 at 10:02:30 Pacific
Reply:
How large do you need? What data type do you wish to use to represent the value? You're kind of asking "How long is a piece of string?".
0
Response Number 2
Name: Mechanix2Go Date: May 27, 2009 at 10:18:25 Pacific
Reply:
(2^43112609)-1
===================================== If at first you don't succeed, you're about average.
M2
0
Response Number 3
Name: cyoung311 Date: May 27, 2009 at 13:46:55 Pacific
Reply:
Pick a language and look in it's reference manual to find this out. You also might take into account whether the machine is 16, 32, 64, 128 or more bits.
Summary: [edit fixes to the script] Fishmonger, I downloaded and install perl(first time I have used it) and ran your script. It seems to be limiting the output with notation, is there any larger data types th...
Summary: I keep getting mathematical errors when trying to use numbers greater than about 2^32 in Fortran 77. I have to do this project in FORTRAN and as of now I can't see of any way to avoid using the multi...
Summary: if you want something really sophisticated, you will need to: - test that the next number does not end in a 0, 2, 4, 5, 6, or an 8 => otherwise pick the next number - if your number ends in a 1, 3, 7 ...