## Nint

### Function Type:

The nint performs a transformation on REAL arguments.

### Function Purpose:

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.

### Required Arguments:

nint(**x**)

The argument **x** must be a floating point number or an argument of the type REAL.

### Optional Arguments:

There are no optional arguments to this function.

### Results:

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.

### For additional examples and information see:

Examples: plot1.f

Lecture seven

## Up** one level / Home**

**
**

Written by Jason Wehr : jcw142@psu.edu and Maintained by John Mahaffy :
jhm@cac.psu.edu