9.198. NINT

9.198 NINT — Nearest whole number

Description:
NINT(A) rounds its argument to the nearest whole number.
Standard:
Fortran 77 and later, with KIND argument Fortran 90 and later
Class:
Elemental function
Syntax:
RESULT = NINT(A [, KIND])
Arguments:
A The type of the argument shall be REAL.
KIND (Optional) An INTEGER initialization expression indicating the kind parameter of the result.
Return value:
Returns A with the fractional portion of its magnitude eliminated by rounding to the nearest whole number and with its sign preserved, converted to an INTEGER of the defau