IBM Books

Language Reference


ANINT(A, KIND)

Nearest whole number.

A
must be of type real.

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

Class

Elemental function

Result Type and Attributes

Result Value

Note:The addition and subtraction of 0.5 are done in round-to-zero mode.

Examples

ANINT(3.555) = 4.0
ANINT(-3.555) = -4.0


Specific Name Argument Type Result Type Pass As Arg?
ANINT default real default real yes
DNINT double precision real double precision real yes
QNINT REAL(16) REAL(16) yes


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ] © Copyright IBM Corporation 1990, 1998