[comp.sys.dec] bug on DS3100 in ldexp

sbw@naucse.UUCP (Steve Wampler) (09/24/89)

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}