fpe:0

fpe:0

If I have some code like this (and compile with fpe:0) on a Pentium 4:

REAL*8 X,BETA
REAL*4 RCINPUT

! WHEN X IS 48.0
! BETA IS 5.0

FFALLE = EXP(-X*X/BETA/BETA)

! FFALLE BECOMES 9.45E-41

RCINPUT = FFALLE

I would expect the the real*4 RCINPUT would be set to 0.0. Or am I misunderstanding /fpe:0. RCINPUT does not get set to 0.0 in the debugger.

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.