NINT(A, KIND)

Purpose

Nearest integer.

Class

Elemental function

Argument Type and Attributes

A
must be of type real.

KIND (optional)
must be a scalar integer initialization expression.

Result Type and Attributes

Result Value

Examples

NINT (2.789) has the value 3. NINT (2.123) has the value 2.


Specific Name Argument Type Result Type Pass As Arg?
NINT default real default integer yes
IDNINT double precision real default integer yes
IQNINT REAL(16) default integer yes(1)

Notes:

  1. IBM Extension: the ability to pass the name as an argument.
IBM Copyright 2003