# Rint

Computes a rounded integer value in a current rounding mode for each vector element with inexact result exception raised for each changed value.

## Syntax

Fortran:

call vsrint( n, a, y )

call vdrint( n, a, y )

C:

vsRint( n, a, y );

vdRint( n, a, y );

## Input Parameters

Name | Type | Description
--- | --- | ---
n | FORTRAN: INTEGER, INTENT(IN) C: int | Specifies the number of elements to be calculated.
a | FORTRAN: REAL, INTENT(IN) for vsrint DOUBLE PRECISION, INTENT(IN) for vdrint C: const float* for vsRint const double* for vdRint | FORTRAN: Array, specifies the input vector a. C: Pointer to an array that contains the input vector a.

## Output Parameters

Name | Type | Description
--- | --- | ---
y | FORTRAN: REAL for vsrint DOUBLE PRECISION for vdrint C: float* for vsRint double* for vdRint | FORTRAN: Array, specifies the output vector y. C: Pointer to an array that contains the output vector y.

## Description

Halfway values, that is, 0.5, -1.5, and the like, are rounded off towards even values. For each changed value, inexact result exception is raised.

Parent topic: Rounding Functions