aint
- Date:
10-12-2011
NAME
AINT, DINT - Perform truncation to integer
SYNOPSIS
AINT ([A=]a[,[KIND=]kind])
DINT ([A=]a)
STANDARDS
Fortran
DESCRIPTION
AINT is the generic function name; DAINT is specific. These are elemental intrinsic functions that accept the following arguments:
- a
Specify a single-precision or double-precision argument.
- kind
A scalar integer initialization expression. Must be a kind type allowed for a.
These functions truncate the fractional parts of their arguments, and the fractional parts are lost (not rounded).
NOTES
The AINT and DINT intrinsic function names can be passed as arguments.
RETURN VALUES
The return values are of type real and have a kind type as specified by the kind argument, if present. If kind is unspecified, the kind type is that of a.
AINT truncates the fractional part of its real argument.
DINT truncates the fractional part of its double-precision argument.
EXAMPLES
The following examples show the results of calling AINT with positive and negative arguments:
AINT(3.4) yields 3.0.
AINT(-3.4) yields -3.0.