You copied the Doc URL to your clipboard.

Logical variables and constants

A LOGICAL constant is either True or False. The Fortran standard does not specify how variables of LOGICAL type are represented. However, it does require LOGICAL variables of default kind to have the same storage size as default INTEGER and REAL variables.

For Arm® Fortran Compiler:

  • .TRUE. corresponds to -1 and has a default storage size of 4-bytes.

  • .FALSE. corresponds to 0 and has a default storage size of 4-bytes.

Note

Some compilers represent .TRUE. and .FALSE. as 1 and 0, respectively.

Was this page helpful? Yes No