z/OS Language Environment Writing Interlanguage Communication Applications
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Short floating-point number

z/OS Language Environment Writing Interlanguage Communication Applications
SA38-0684-00

Sample Fortran usage PL/I Function
REAL*4 X, Y, F2PPSFP
X = 5.0
Y = F2PPSFP(X)
PRINT *,
1 'VALUE RETURNED TO FORTRAN:', Y
END
F2PPSFP: PROC (X) OPTIONS(FORTRAN)
      RETURNS(FLOAT DEC(6));
  DCL X       FLOAT DEC(6);
  PUT SKIP
      LIST('PL/I ARG VALUE:', X);
  RETURN (X);
END F2PPSFP;
 

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014