# Modf

Computes a truncated integer value and remaining fraction part for each vector element.

## Syntax

Fortran:

call vsmodf( n, a, y, z )

call vdmodf( n, a, y, z )

C:

vsModf( n, a, y, z );

vdModf( n, a, y, z );

## 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 vsmodf DOUBLE PRECISION, INTENT(IN) for vdmodf C: const float* for vsModf const double* for vdModf | FORTRAN: Array, specifies the input vector a. C: Pointer to an array that contains the input vector a.

## Output Parameters

Name | Type | Description
--- | --- | ---
y, z | FORTRAN: REAL for vsmodf DOUBLE PRECISION for vdmodf C: float* for vsModf double* for vdModf | FORTRAN: Array, specifies the output vector y and z. C: Pointer to an array that contains the output vector y and z.

Parent topic: Rounding Functions