EXPONENT(3f)

DESCRIPTION
EXPONENT(X) returns the value of the exponent part of X. If X is zero the value returned is zero.

STANDARD
Fortran 95 and later

CLASS
Elemental function

SYNTAX
RESULT = EXPONENT(X)

ARGUMENTS

X The type shall be REAL.

RETURN VALUE
The return value is of type default INTEGER.

EXAMPLE
          program test_exponent
            real :: x = 1.0
            integer :: i
            i = exponent(x)
            print *, i
            print *, exponent(0.0)
          end program test_exponent

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).