isInteger Function

public pure function isInteger(input) result(lOut)

Check if the input string is a valid signed decimal integer string.

This function ignores leading and trailing whitespaces.

This function returns a logical value of .TRUE. if the input string is a valid signed decimal integer string.

A logical value of .FALSE. will be returned where the input string is empty(only spaces), 0 length, or is not a valid signed decimal integer string.

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: input

A string.

Return Value logical