Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

question on big data type

sunshine177
Beginner
395 Views
Hi,
I need to use a number bigger than 10^10000. I tried to declare the big number using real*16, but it didnt work.
Is there no real*32 or real*64? or anyone knows how to declare the big number?
0 Kudos
1 Reply
mecej4
Honored Contributor III
395 Views
You may explore what your compiler makes available to you by using the selected_real_kind(p, r) function.

The number of atoms in the universe is around 10^80. That, for you, is an infinitesimal quantity! If all the numbers in your calculation are of the order of 10^10^4, simply rescale by that number.

People usually switch to real*16 and such types, if available, in order to achieve extended precision, but you seem to want range, instead.

There are multiple-precision packages available. However, they require significant effort to understand and use. Perhaps, you should explain why you think you need these large numbers, and what you plan to do with those numbers, were they available.
0 Kudos
Reply