2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. index:: MAXEXPONENT, model representation, maximum exponent
10 MAXEXPONENT --- Maximum exponent of a real kind
11 ***********************************************
13 .. function:: MAXEXPONENT(X)
15 ``MAXEXPONENT(X)`` returns the maximum exponent in the model of the
19 Shall be of type ``REAL``.
22 The return value is of type ``INTEGER`` and of the default integer
32 .. code-block:: fortran
34 RESULT = MAXEXPONENT(X)
37 .. code-block:: fortran
43 print *, minexponent(x), maxexponent(x)
44 print *, minexponent(y), maxexponent(y)