]>
Commit | Line | Data |
---|---|---|
c63539ff ML |
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:: INT2, conversion, to integer | |
7 | ||
8 | .. _int2: | |
9 | ||
10 | INT2 --- Convert to 16-bit integer type | |
11 | *************************************** | |
12 | ||
13 | .. function:: INT2(A) | |
14 | ||
15 | Convert to a ``KIND=2`` integer type. This is equivalent to the | |
16 | standard ``INT`` intrinsic with an optional argument of | |
17 | ``KIND=2``, and is only included for backwards compatibility. | |
18 | ||
19 | :param A: | |
20 | Shall be of type ``INTEGER``, | |
21 | ``REAL``, or ``COMPLEX``. | |
22 | ||
23 | :return: | |
24 | The return value is a ``INTEGER(2)`` variable. | |
25 | ||
26 | Standard: | |
27 | GNU extension | |
28 | ||
29 | Class: | |
30 | Elemental function | |
31 | ||
32 | Syntax: | |
33 | .. code-block:: fortran | |
34 | ||
35 | RESULT = INT2(A) | |
36 | ||
37 | See also: | |
38 | :ref:`INT`, | |
3ed1b4ce | 39 | :ref:`INT8` |