Fortran Wiki
logical

Description

Converts one kind of logical variable to another.

Standard

Fortran 95 and later

Class

Elemental function

Syntax

result = logical(l [, kind])

Arguments

  • l - The type shall be logical.
  • kind - (Optional) An integer initialization expression indicating the kind parameter of the result.

Return value

The return value is a logical value equal to l, with a kind corresponding to kind, or of the default logical kind if kind is not given.

See also

int, real, cmplx

category: intrinsics