*BSD News Article 16492


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!usc!wupost!bigboy.sbc.com!news.mtholyoke.edu!eddie.mit.edu!magnesium.club.cc.cmu.edu!pitt.edu!goalie3
From: goalie3+@pitt.edu (Robert W Kramer)
Newsgroups: comp.os.386bsd.bugs
Subject: 0.0 == -1.0?
Message-ID: <12323@blue.cis.pitt.edu>
Date: 25 May 93 20:06:59 GMT
Sender: news+@pitt.edu
Organization: University of Pittsburgh
Lines: 40

Hello out there!

Hopefully, this is not a problem that has already been hasshed & rehashed (I
don't read news too often).

Consider the following program:

#include <stdio.h>

void main(void) {
  double val;

  val = 0.0;

  printf("%f\n",val);

}

WHY, oh why, does the program output -1.00000?????
%lf does not work.
HOWEVER, changing the 0.0 to 0 fixes the problem.

I'm using 386BSD, no patchkits, no '387.

While I have yer attention, I have a 386, 4 meg RAM, 144 Meg ESDI HD (9 head,
968 cylinder, 34 sector). I've had nothing but problems installing NetBSD.
Any sugestions (besides RTFM)???

IsQIC-80 support in the future of NetBSD?

Thanks, take care & enjoy the day

Bob

------------------------------------------------------------------------------
Bob Kramer                             I am pro-choice. Here are your choices:
kramer@cs.pitt.edu                     (1) Don't do it.
                                       (2) Take responsibility for the
                                           consequences if you do.
------------------------------------------------------------------------------