# Trunc

Computes a rounded towards zero integer value for each vector element.

## Syntax

Fortran:

call vstrunc( n, a, y )

call vdtrunc( n, a, y )

C:

vsTrunc( n, a, y );

vdTrunc( 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 vstrunc DOUBLE PRECISION, INTENT(IN) for vdtrunc C: const float* for vsTrunc const double* for vdTrunc | 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 vstrunc DOUBLE PRECISION for vdtrunc C: float* for vsTrunc double* for vdTrunc | FORTRAN: Array, specifies the output vector y. C: Pointer to an array that contains the output vector y.

Parent topic: Rounding Functions