AINT intrinsic function

Standard: (F77) F90 F95 F2003 F2008 Example program


AINT ( A [ , KIND ] )

A : Real;
KIND : scalar Integer constant expression;

Result : Real(Kind=Kind(A)) or Real(Kind=KIND).


The value of the result is the nearest integer whose absolute value is less than or equal to that of A. Like many intrinsic functions, this is elemental; the result has the same shape as A, with the operation being applied elementwise.


ANINT intrinsic function, CEILING intrinsic function, FLOOR intrinsic function, INT intrinsic function, NINT intrinsic function