Sun Studio 12: Fortran Library Reference

2.1.2 Numeric Functions

Generic Intrinsic Name  

Description  

ABS (A)

Absolute value 

AIMAG (Z)

Imaginary part of a complex number 

AINT (A [, KIND])

Truncation to whole number 

ANINT (A [, KIND])

Nearest whole number 

CEILING (A [, KIND])

Least integer greater than or equal to number 

CMPLX (X [, Y, KIND])

Conversion to complex type 

CONJG (Z)

Conjugate of a complex number 

DBLE (A)

Conversion to double precision real type 

DIM (X, Y)

Positive difference 

DPROD (X, Y)

Double precision real product 

FLOOR (A [, KIND])

Greatest integer less than or equal to number 

INT (A [, KIND])

Conversion to integer type 

MAX (A1, A2 [, A3,...])

Maximum value 

MIN (A1, A2 [, A3,...])

Minimum value 

MOD (A, P)

Remainder function 

MODULO (A, P)

Modulo function 

NINT (A [, KIND])

Nearest integer 

REAL (A [, KIND])

Conversion to real type 

SIGN (A, B)

Transfer of sign