XL Fortran for AIX 8.1
Language Reference
Truncates to a whole number.
- A
- must be of type real.
- KIND (optional)
- must be a scalar integer initialization expression.
Class
Elemental function
Result Type and Attributes
- The result type is real.
- If KIND is present, the kind type parameter is that specified by
KIND; otherwise, the kind type parameter is that of A.
Result Value
- If |A| < 1, the result is zero.
- If |A| >= 1, the result has a value equal to the
integer whose magnitude is the largest integer that does not exceed the
magnitude of A and whose sign is the same as the sign of A.
Examples
AINT(3.555) = 3.0
AINT(-3.555) = -3.0
Specific Name
| Argument Type
| Result Type
| Pass As Arg?
|
AINT
| default real
| default real
| yes
|
DINT
| double precision real
| double precision real
| yes
|
QINT (1)
| REAL(16)
| REAL(16)
| yes
|
Notes:
- IBM Extension.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]