Inquiry Intrinsic Functions

The following table lists inquiry intrinsic functions.

Name

Description

ALLOCATED

Determines whether an allocatable array is allocated.

ASSOCIATED

Determines whether a the first pointer argument and the second (optional) pointer argument are associated.

BIT_SIZE

Returns the number of bits in an integer type.

CACHESIZE1

Returns the size of a level of the memory cache.

COMMAND_ARGUMENT_COUNT

Returns the number of command arguments.

DIGITS

Returns number of significant digits for data of the same type as the argument.

EOF

Determines whether a file is at or beyond the end-of-file record.

EPSILON

Returns the smallest positive number that when added to one produces a number greater than one for data of the same type as the argument.

HUGE

Returns the largest number that can be represented by numbers of type the argument.

IARGC

Returns the index of the last command-line argument.

INT_PTR_KIND

Returns the INTEGER KIND that will hold an address.

KIND

Returns the value of the kind parameter of the argument.

LBOUND

Returns the lower bounds for all dimensions of an array, or the lower bound for a specified dimension.

LEN

Returns the length of a character expression.

LOC

Returns the address of the argument.

MAXEXPONENT

Returns the largest positive decimal exponent for data of the same type as the argument.

MINEXPONENT

Returns the largest negative decimal exponent for data of the same type as the argument.

NARGS

Returns the total number of command-line arguments, including the command.

PRECISION

Returns the number of significant digits for data of the same type as the argument.

PRESENT

Determines whether an optional argument is present.

RADIX

Returns the base for data of the same type as the argument.

RANGE

Returns the decimal exponent range for data of the same type as the argument.

SELECTED_INT_KIND

Returns the value of the kind parameter of integers in range r.

SELECTED_REAL_KIND

Returns the value of the kind parameter of reals with (optional) first argument digits and (optional) second argument exponent range. At least one optional argument is required.

SHAPE

Returns the shape of an array or scalar argument.

SIZEOF

Returns the number of bytes of storage used by the argument.

TINY

Returns the smallest positive number that can be represented by numbers of type the argument.

UBOUND

Returns the upper bounds for all dimensions of an array, or the upper bound for a specified dimension.

1i64 only