Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ round(3f) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

round(3f)

NAME

anint, dnint, nint, idnint − Fortran nearest integer functions

SYNTAX

integer i
real r1, r2
double precision dp1, dp2
r2 = anint(r1)
i = nint(r1)
dp2 = anint(dp1)
dp2 = dnint(dp1)
i = nint(dp1)
i = idnint(dp1)

DESCRIPTION

The anint function returns the nearest whole real number to its real argument (that is, int(a+0.5) if a ≥ 0, int(a−0.5) otherwise).  The dnint function does the same for its double-precision argument.  The nint function returns the nearest integer to its real argument.  The idnint function is the double-precision version.  The anint function is the generic form of anint and dnint, performing the same operation and returning the data type of its argument.  The nint function is also the generic form of idnint. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026