Home »
Public Forums »
archive »
Re: How to use large (>10^38) numbers
Re: How to use large (>10^38) numbers [message #71074] |
Fri, 28 May 2010 15:40 |
Gray
Messages: 253 Registered: February 2010
|
Senior Member |
|
|
On May 28, 5:50 pm, Adam Solomon <rampa...@gmail.com> wrote:
> I've got a piece of code where I need to make a calculation where one
> part is a certain float variable (on the order of 10^28) squared. IDL
> likes to call this "inf". Apparently no data type I can find (float
> included) is willing to recognize a number greater than about 3e38 as
> a finite number. I can think of a number of unwieldy workarounds to do
> this calculation, but is there a way to store numbers this large (up
> to ~10^60) in an array?
You can use double-precision floats.
|
|
|
Current Time: Fri Oct 10 14:03:13 PDT 2025
Total time taken to generate the page: 1.35938 seconds