INT2 (The GNU Fortran Compiler)

### 8.159 `INT2` — Convert to 16-bit integer type ¶

Synopsis:

  `RESULT = INT2(A)`

Description:

  Convert to a `KIND=2` integer type. This is equivalent to the standard `INT` intrinsic with an optional argument of `KIND=2`, and is only included for backwards compatibility.

Class:

  Elemental function

Arguments:

  A | Shall be of type `INTEGER`, `REAL`, or `COMPLEX`.

Return value:

  The return value is a `INTEGER(2)` variable.

Standard:

  GNU extension

See also:

  `INT` — Convert to integer type,
  `INT8` — Convert to 64-bit integer type