type_conversion_m Module

Functions for converting datatypes


Contents


Functions

public pure function logical_to_integer(login)

Returns 1 if input = true, otherwise 0

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: login

Logical to be converted to integer

Return Value integer

public pure function integer_to_logical(intin)

Returns true if input = 1, otherwise 0

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: intin

Integer to be converted to logical

Return Value logical