9.171. LOGICAL

9.171 LOGICAL — Convert to logical type

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

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gfortran/LOGICAL.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部