AINT(A, KIND)

Purpose

Truncates to a whole number.

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

AINT(3.555) = 3.0
AINT(-3.555) = -3.0


Specific Name Argument Type Result Type Pass As Arg?
AINT default real default real yes
DINT double precision real double precision real yes
QINT (1) REAL(16) REAL(16) yes

Notes:

  1. IBM Extension.

IBM Copyright 2003