# Newbie question on parameterized-declaration-list

**URL:** https://fortran-lang.discourse.group/t/newbie-question-on-parameterized-declaration-list/4996
**Category:** Help
**Created:** [January 8, 2023, 7:22pm UTC](https://fortran-lang.discourse.group/t/newbie-question-on-parameterized-declaration-list/4996 "2023-01-08T19:22:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![someknowit](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@someknowit](https://fortran-lang.discourse.group/u/someknowit)
#### Post date: [January 8, 2023, 7:22pm UTC](https://fortran-lang.discourse.group/t/newbie-question-on-parameterized-declaration-list/4996/1 "2023-01-08T19:22:04Z")

</div>

In the example at [Derived Types — Fortran Programming Language](https://fortran-lang.org/en/learn/quickstart/derived_types/)

```auto
 type, public :: t_matrix(rows, cols, k)
   integer, len :: rows, cols
   integer, kind :: k = kind(0.0)
   real(kind=k), dimension(rows, cols) :: values
 end type

```

It seems to me “k” is defined as a real type, so what does the use of “integer” mean at:

```auto
   integer, kind :: k = kind(0.0)

```

?

---

<div class="post-metadata">

### Author: ![FortranFan](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FortranFan](https://fortran-lang.discourse.group/u/FortranFan)
#### Post date: [January 8, 2023, 7:57pm UTC](https://fortran-lang.discourse.group/t/newbie-question-on-parameterized-declaration-list/4996/2 "2023-01-08T19:57:21Z")

</div>

> [@someknowit](#):
>
> … what does the use of “integer” mean at: …

@someknowit ,

Note that in Fortran the type of the `KIND` parameter itself is integer.

So place aside the parametrized derived type for now, say you wanted to declare a kind of `REAL` type that has a precision of at least 18: the language then suggests you can do something along the following lines:

```fortran
integer, parameter :: RK_18 = selected_real_kind( p=18 )
real(kind=RK_18) : : x

```

So just as the type of `RK_18` is an integer here even though the type of interest is REAL, the same applies in your PDT case with type parameter `k`.
