home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23419 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  909 b 

  1. Path: sparky!uunet!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!news
  2. From: probreak@matt.ksu.ksu.edu (James Michael Chacon)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Kernel FP Math bug?
  5. Date: 9 Jan 1993 20:50:19 -0600
  6. Organization: Kansas State University
  7. Lines: 23
  8. Message-ID: <1io2tbINNs3a@matt.ksu.ksu.edu>
  9. References: <1993Jan9.144510.9590@walter.cray.com>
  10. NNTP-Posting-Host: matt.ksu.ksu.edu
  11.  
  12. rsocia@alberti.cray.com (Rick Socia) writes:
  13.  
  14. >I compiled the following program:
  15.  
  16. >main(int argc, char *argv)
  17. >{
  18. >  double f;
  19.  
  20. >  f = atof(argv[1]);
  21. >  printf("The answere is %f\n", f);
  22. >}
  23.  
  24. >The core dumps.  (passing an argument of "0.50").
  25.  
  26. >Any ideas?
  27. >-- 
  28. >Rick Socia
  29.  
  30. One problem with that code, if thats the EXACT code you compiled, is that
  31. argv is defined wrong. I compiled it with argv defined as char *argv[], and
  32. it works fine. Floating point works just fine as far as I have ever seen.
  33.  
  34. James
  35.