From: milt@lax.pe-nelson.com (Milt Ratcliff)
Subject: Rounding double precision numbers
Date: 9 Nov 93 22:01:17 GMT [thread overview]
Message-ID: <910@lax.lax.pe-nelson.com> (raw)
We are trying to find routines for VMS which will allow double
precision numbers to be rounded in a controlled manner.
Specifically if the number is exactly 'n.5' the rounding must be to
the nearest even integer. For example, 3.5 would round to 4 while 2.5
would round to 2. This is quite easy under SunOS, using irint() to
round the number and the ieee_flags() to set the rounding direction,
both defined in math.h. All of the include files involved, with
SunOS, contain a Sun copyright.
Are these ieee routines a standard? If so, who defines it and more
importantly are there implementations around which could run under
VMS.
Incidentally, DEC support claims that neither OSF/1 nor Ultrix contain
these routines.
--
-- Milt
reply other threads:[~1993-11-09 22:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox