🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.dec
Article #714

bug on DS3100 in ldexp()?

#714
From: Steve Wampler
Date: Sun, 24 Sep 1989 15:31
25 lines
981 bytes
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}
Technical Details
Message-ID: <1710@naucse.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!noao!arizona!naucse!sbw

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!noao!arizona!naucse!sbw
From: sbw@naucse.UUCP (Steve Wampler)
Newsgroups: comp.sys.dec
Subject: bug on DS3100 in ldexp()?
Message-ID: <1710@naucse.UUCP>
Date: 24 Sep 89 15:31:29 GMT
Organization: Northern Arizona University, Flagstaff, AZ
Lines: 25