Intel® Math Kernel Library 2019 Developer Reference - Fortran

v?Rint

Computes a rounded integer value in the current rounding mode.

Syntax

call vsrint( n, a, y )

call vmsrint( n, a, y, mode )

call vdrint( n, a, y )

call vmdrint( n, a, y, mode )

Include Files

Input Parameters

Name

Type

Description

n

INTEGER, INTENT(IN)

Specifies the number of elements to be calculated.

a

DOUBLE PRECISION for vdrint, vmdrint

REAL, INTENT(IN) for vsrint, vmsrint

DOUBLE PRECISION, INTENT(IN) for vdrint, vmdrint

Array that specifies the input vector a.

mode

INTEGER(KIND=8), INTENT(IN)

Overrides global VM mode setting for this function call. See vmlSetMode for possible values and their description.

Output Parameters

Name

Type

Description

y

DOUBLE PRECISION for vdrint, vmdrint

REAL, INTENT(OUT) for vsrint, vmsrint

DOUBLE PRECISION, INTENT(OUT) for vdrint, vmdrint

Array that specifies the output vector y.

Description

The v?Rint function computes a rounded floating-point integer value using the current rounding mode for each vector element.

The rounding mode affects the results computed for inputs that fall between consecutive integers. For example:

Special Values for Real Function v?Rint(x)
Argument Result Exception
+0 +0  
-0 -0  
+ +  
- -  
SNAN QNAN INVALID
QNAN QNAN