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

largest number in fortran IA32

andibrains
Beginner
531 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
531 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
531 Views

And while you're at it

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


Jim Dempsey
0 Kudos
Reply