]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/fortran/doc/gfortran/intrinsic-procedures/range.rst
sphinx: copy files from texi2rst-generated repository
[thirdparty/gcc.git] / gcc / fortran / doc / gfortran / intrinsic-procedures / range.rst
1 ..
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.
5
6 .. index:: RANGE, model representation, range
7
8 .. _range:
9
10 RANGE --- Decimal exponent range
11 ********************************
12
13 .. function:: RANGE(X)
14
15 ``RANGE(X)`` returns the decimal exponent range in the model of the
16 type of ``X``.
17
18 :param X:
19 Shall be of type ``INTEGER``, ``REAL``
20 or ``COMPLEX``.
21
22 :return:
23 The return value is of type ``INTEGER`` and of the default integer
24 kind.
25
26 Standard:
27 Fortran 90 and later
28
29 Class:
30 Inquiry function
31
32 Syntax:
33 .. code-block:: fortran
34
35 RESULT = RANGE(X)
36
37 Example:
38 See ``PRECISION`` for an example.
39
40 See also:
41 :ref:`SELECTED_REAL_KIND`,
42 :ref:`PRECISION`