Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

largest number in fortran IA32

andibrains
Beginner
706 Views
hi,

maybe a stupid question but what is the largest real number that i can use in fortran, working on a 32-bit operating system?
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
706 Views
Quoting - andibrains
hi,

maybe a stupid question but what is the largest real number that i can use in fortran, working on a 32-bit operating system?

Stupid no, but a bit lazy yes:

WRITE(*,*) HUGE(0.)
WRITE(*,*) HUGE(0.D0)

http://www.helsinki.fi/atk/unix/dec_manuals/df90au52/dfum034.htm

0 Kudos
jimdempseyatthecove
Honored Contributor III
706 Views

And while you're at it

WRITE(*,*) TINY(0.)
WRITE(*,*) TINY(0.D0)


Jim Dempsey
0 Kudos
Reply