.. Copyright 1988-2021 Free Software Foundation, Inc. This is part of the GCC manual. For copying conditions, see the GPL license file .. _maxexponent: MAXEXPONENT --- Maximum exponent of a real kind *********************************************** .. index:: MAXEXPONENT .. index:: model representation, maximum exponent .. function:: MAXEXPONENT(X) ``MAXEXPONENT(X)`` returns the maximum exponent in the model of the type of ``X``. :param X: Shall be of type ``REAL``. :return: The return value is of type ``INTEGER`` and of the default integer kind. :samp:`{Standard}:` Fortran 90 and later :samp:`{Class}:` Inquiry function :samp:`{Syntax}:` .. code-block:: fortran RESULT = MAXEXPONENT(X) :samp:`{Example}:` .. code-block:: fortran program exponents real(kind=4) :: x real(kind=8) :: y print *, minexponent(x), maxexponent(x) print *, minexponent(y), maxexponent(y) end program exponents