EXPONENT(X)
returns the value of the exponent part of X. If X is zero the value returned is zero. RESULT = EXPONENT(X)
X | The type shall be REAL . |
INTEGER
. program test_exponent real :: x = 1.0 integer :: i i = exponent(x) print *, i print *, exponent(0.0) end program test_exponent
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gfortran/EXPONENT.html