SET_EXPONENT— Set the exponent of the model
SET_EXPONENT(X, I)returns the real number whose fractional part is that that of X and whose exponent part is I.
RESULT = SET_EXPONENT(X, I)
|X||Shall be of type |
|I||Shall be of type |
FRACTION(X) * RADIX(X)**I.
PROGRAM test_setexp REAL :: x = 178.1387e-4 INTEGER :: i = 17 PRINT *, SET_EXPONENT(x, i), FRACTION(x) * RADIX(x)**i END PROGRAM