The nint performs a transformation on REAL arguments.
The nint function will return the nearest INTEGER to the REAL argument passed to it. This is exactly the same thing as rounding numbers up or down.
nint(x)
The argument x must be a floating point number or an argument of the type REAL.
There are no optional arguments to this function.
As stated earlier, this function basically performs a rounding operation on the real numbers that are passed to it. Therefore if x = 4.67, and this call is issued to the function:
i = nint(x)
it should be pretty obvious that the value of i will be five.
Examples: plot1.f
Lecture seven
Written by Jason Wehr : jcw142@psu.edu and Maintained by John Mahaffy : jhm@cac.psu.edu