Intel® Fortran Compiler 17.0 Developer Guide and Reference

KNUM

Elemental Intrinsic Function (Specific): Converts a character string to an INTEGER(8) value.

Syntax

result = KNUM (i)

i

(Input) Must be of type character.

Results

The result type is INTEGER(8). The result value is the integer value represented by the character string i.

If the argument contains characters that are illegal in an integer value, an error is signaled and execution stops.

Example

KNUM ("46616") has the value 46616 of type INTEGER(8).