According to the FTN95 help documentation, the value of HUGE for the default single precision REAL is 3.4028235E+38. Yet when I try to do
REAL aReal
aReal = 3.4028235E+38
the compiler says,
ERROR Floating point number out of range.
However, aReal = HUGE(aReal) seems to compile ok.
Also, I note that DATA maxRl / HUGE(maxRl) / appears to compile ok when it is in a BLOCK DATA subroutine. Shouldn’t the compiler flag this as illegal use of executable code within the block data.
Keith