Next: SIGN, Previous: SELECTED_REAL_KIND, Up: Intrinsic Procedures
SET_EXPONENT
— Set the exponent of the modelSET_EXPONENT(X, I)
returns the real number whose fractional part
is that that of X and whose exponent part if I.
Y = SET_EXPONENT(X, I)
X | shall be of type REAL .
|
I | shall be of type INTEGER .
|
FRACTION(X) * RADIX(X)**I
.
program test_setexp real :: x = 178.1387e-4 integer :: i = 17 print *, set_exponent(x), fraction(x) * radix(x)**i end program test_setexp