The following program yields the value of 1.00000 under debug win32 mode of FTN95 compiler version 5.20.1. The correct value should be 2.00000 I do get the correct value when the 'OPTIONS(CHECK)' is commented out.
Can someone check it out?
yair
PRINT *,F2()
END
FUNCTION F1(X)
F1=X
END
OPTIONS(CHECK)
FUNCTION F2()
REAL X(1)/1./
F2=ABS(F1(X(1)))*2.
END