Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Rounding double precision numbers
@ 1993-11-09 22:01 Milt Ratcliff
  0 siblings, 0 replies; only message in thread
From: Milt Ratcliff @ 1993-11-09 22:01 UTC (permalink / 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-11-09 22:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-11-09 22:01 Rounding double precision numbers Milt Ratcliff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox