Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: sbw@naucse.UUCP (Steve Wampler)
Subject: bug on DS3100 in ldexp()?
Date: 24 Sep 89 15:31:29 GMT	[thread overview]
Message-ID: <1710@naucse.UUCP> (raw)

Under Ultrix 3.0 on a DECstation 3100, the following script files
shows that ldexp() incorrectly scales the value 0.0.  Is this
still true under 3.1?  Could someone else verify this for me?
Thanks!  (I know ldexp() works properly under the uVAXen versions
of Ultrix, but am curious as to whether it's been fixed in 3.1.)

--- cut 'typescript' ---
Script started on Sun Sep 24 08:26:00 1989
-> cat t.c
# include <stdio.h>

main()
   {
   double ldexp();

   printf("0.0 scales to: %lg\n",ldexp(0.0,-1));
   }
-> cc t.c -lm -o t
-> t
0.0 scales to: 5.56268e-309
-> 
--- end 'typescript' ---
-- 
	Steve Wampler
	{....!arizona!naucse!sbw}


                 reply	other threads:[~1989-09-24 15:31 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