Numeric Functions

The generic procedure name is shown in bold text.
Other procedure names appearing in the same cell as the generic name
are specific versions of the generic procedure. Procedures highlighted
in blue are supported nonstandard versions
of the generic procedure.

Numeric Functions

Name

Function Type

Argument Type

Description

Class

ABS

CABS

CDABS

CQABS

DABS

QABS

IABS

I2ABS

IIABS

JIABS

Numeric

REAL_4

REAL_8

REAL_16

REAL_8

REAL_16

INTEGER_4

INTEGER_2

INTEGER_2

INTEGER_4

Numeric

COMPLEX_4

COMPLEX_8

COMPLEX_16

REAL_8

REAL_16

INTEGER_4

INTEGER_2

INTEGER_2

INTEGER_4

Absolute Value.

Elemental

AIMAG

DIMAG

QIMAG

REAL

REAL_8

REAL_16

COMPLEX

COMPLEX_8

COMPLEX_16

Imaginary part of a complex number.

Elemental

AINT

DINT

QINT

REAL

REAL_8

REAL_16

REAL

REAL_8

REAL_16

Truncation to a whole number.

Elemental

ANINT

DNINT

QNINT

REAL

REAL_8

REAL_16

REAL

REAL_8

REAL_16

REAL representation of the nearest whole number.

Elemental

CEILING

INTEGER_4

REAL

Smallest INTEGER greater than or equal to a number.

Elemental

CMPLX

DCMPLX

QCMPLX

COMPLEX

COMPLEX_8

COMPLEX_16

Numeric

Numeric

Numeric

Convert to type COMPLEX.

Elemental

CONJG

DCONJG

QCONJG

COMPLEX

COMPLEX_8

COMPLEX_16

COMPLEX

COMPLEX_8

COMPLEX_16

Conjugate of a complex number.

Elemental

DBLE

DREAL*

DFLOAT*

DBLEQ

REAL_8

REAL_8

REAL_8

REAL_8

Numeric

COMPLEX_8

INTEGER_4

REAL_16

Convert to double-precision REAL type.

Elemental

DIM

DDIM

QDIM

IDIM

I2DIM

IIDIM

JIDIM

INTEGER or REAL

REAL_8

REAL_16

INTEGER_4

INTEGER_2

INTEGER_2

INTEGER_4

INTEGER or REAL

REAL_8

REAL_16

INTEGER_4

INTEGER_2

INTEGER_2

INTEGER_4

The difference between two numbers if the difference is positive; zero otherwise.

Elemental

DPROD

REAL_8

REAL_4

Double-precision REAL product.

Elemental

EXPONENT

REAL

REAL

Exponent part of the model representation of a number.

Elemental

FLOOR

INTEGER_4

REAL

Greatest INTEGER less than or equal to a number.

Elemental

FRACTION

REAL

REAL

Fraction part of the physical representation of a number.

Elemental

INT

IDINT*

IQINT*

IFIX*

INT2*

INT4*

HFIX*

IINT*

JINT*

IIDINT*

JIDINT*

IIFIX*

JIFIX*

INTEGER

INTEGER

INTEGER

INTEGER

INTEGER_2

INTEGER_4

INTEGER_2

INTEGER_2

INTEGER_4

INTEGER_2

INTEGER_4

INTEGER_2

INTEGER_4

Numeric

REAL_8

REAL_16

REAL_4

Numeric

Numeric

REAL_4

REAL_4

REAL_4

REAL_8

REAL_8

REAL_4

REAL_4

Convert to INTEGER type.

Elemental

MAX

AMAX0*

AMAX1*

DMAX1*

QMAX1*

MAX0*

MAX1*

I2MAX0*

IMAX0*

JMAX0*

IMAX1*

JMAX1*

AIMAX0*

AJMAX0*

INTEGER or REAL

REAL_4

REAL_4

REAL_8

REAL_16

INTEGER_4

INTEGER_4

INTEGER_2

INTEGER_2

INTEGER_4

INTEGER_2

INTEGER_4

REAL_4

REAL_4

INTEGER or REAL

INTEGER_4

REAL_4

REAL_8

REAL_16

INTEGER_4

REAL_4

INTEGER_2

INTEGER_2

INTEGER_4

REAL_4

REAL_4

INTEGER_2

INTEGER_4

Maximum value.

Elemental

MIN

AMIN0*

AMIN1*

DMIN1*

QMIN1*

MIN0*

MIN1*

I2MIN0*

IMIN0*

JMIN0*

IMIN1*

JMIN1*

AIMIN0*

AJMIN0*

INTEGER or REAL

REAL_4

REAL_4

REAL_8

REAL_16

INTEGER_4

INTEGER_4

INTEGER_2

INTEGER_2

INTEGER_4

INTEGER_2

INTEGER_4

REAL_4

REAL_4

INTEGER or REAL

INTEGER_4

REAL_4

REAL_8

REAL_16

INTEGER_4

REAL_4

INTEGER_2

INTEGER_2

INTEGER_4

REAL_4

REAL_4

INTEGER_2

INTEGER_4

Minimum value.

Elemental

MOD

AMOD

DMOD

QMOD

I2MOD

IMOD

JMOD

INTEGER or REAL

REAL_4

REAL_8

REAL_16

INTEGER_2

INTEGER_2

INTEGER_4

INTEGER or REAL

REAL_4

REAL_8

REAL_16

INTEGER_2

INTEGER_2

INTEGER_4

Remainder.

Elemental

MODULO

INTEGER or REAL

INTEGER or REAL

Modulo.

Elemental

NEAREST

REAL

REAL

Nearest number of a given data type in a given direction.

Elemental

NINT

IDNINT

IQNINT

I2NINT

ININT

JNINT

IIDNNT

JIDNNT

INTEGER

INTEGER_4

INTEGER_4

INTEGER_2

INTEGER_4

INTEGER_2

INTEGER_2

INTEGER_4

REAL

REAL_8

REAL_16

REAL

REAL_4

REAL_4

REAL_8

REAL_8

Nearest INTEGER.

Elemental

REAL

FLOAT*

SNGL*

SNGLQ*

FLOATI*

FLOATJ*

DFLOTI*

DFLOTJ*

REAL

REAL_4

REAL_4

REAL_4

REAL_4

REAL_4

REAL_8

REAL_8

Numeric

INTEGER

REAL_8

REAL_16

INTEGER_2

INTEGER_4

INTEGER_2

INTEGER_4

Convert to REAL type.

Elemental

RRSPACING

REAL

REAL

Reciprocal of relative spacing near a given number.

Elemental

SCALE

REAL

REAL and INTEGER

Multiply a number by a power of two.

Elemental

SET_

EXPONENT

REAL

REAL and INTEGER

Model representation of a number with exponent part set to a power of two.