Intrinsic Functions for Numeric and Type Conversion

The following table lists intrinsic functions for numeric and type conversion.

Name Description
ABS Returns the absolute value of the argument.
AIMAG Returns imaginary part of complex number z.
AINT Truncates the argument to a whole number of a specified (optional) kind.
AMAX0 Returns largest value among integer arguments as real.
AMIN0 Returns smallest value among integer arguments as real.
ANINT Rounds to the nearest whole number of a specified (optional) kind.
CEILING Returns smallest integer greater than the argument.
CMPLX Converts the first argument and (optional) second argument to complex of a (optional) kind.
CONJG Returns the conjugate of a complex number.
DBLE Converts the argument to double precision type.
DCMPLX Converts the argument to double complex type.
DFLOAT Converts an integer to double precision type.
DIM Returns the first argument - the second argument if positive; else 0.
DPROD Returns double-precision product of two single precision arguments.
FLOAT Converts the argument to REAL(4).
FLOOR Returns the greatest integer less than or equal to the argument.
IFIX Converts a single-precision real argument to an integer argument by truncating.
IMAG Same as AIMAG.
INT Converts a value to integer type.
LOGICAL Converts between logical arguments of (optional) kind.
MAX Returns largest value among arguments.
MAX1 Returns largest value among real arguments as integer.
MIN Returns smallest value among arguments.
MIN1 Returns smallest value among real arguments as integer
MOD Returns the remainder of the first argument divided by the second argument.
MODULO Returns the first argument modulo of the second argument.
NINT Returns the nearest integer to the argument.
REAL Converts a value to real type.
SIGN Returns absolute value of the first argument times the sign of the second argument.
SNGL Converts a double-precision argument to single-precision real type.
TRANSFER Transforms first argument into type of second argument with (optional) size if an array.
ZEXT Extends the argument with zeros.