FORTRAN Reference Manual
Intrinsic Functions
FORTRAN Reference Manual—528615-001
8-7
ANINT Function
•
If ABS (x) > 1.0, AINT returns the integer whose magnitude is the largest integer 
that does not exceed the magnitude of x and whose sign is the same as that of x.
Examples of the AINT Function
x = DINT (y)
a = AINT (.01 * c)
ANINT Function
The ANINT function returns the whole number that is closest in value to its argument.
The table below shows the argument and function type for the ANINT function and its 
associated specific function.
Considerations
•
The result type of the ANINT function is the same as the type of its argument.
•
If x is zero, ANINT returns zero.
•
If x is greater than zero, ANINT returns:
AINT (x + 0.5)
•
If x is less than zero, ANINT returns:
AINT (x - 0.5)
Example of the ANINT Function
esttax = ANINT (price) * .07 * items
Syntax Argument Type Function Type
ANINT (x)
ANINT (x)Real Real
DNINT (x) Double Precision Double Precision
x is an arithmetic expression.










