home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23407 < prev    next >
Encoding:
Text File  |  1993-01-09  |  912 b   |  29 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!leland.Stanford.EDU!britt
  3. From: britt@leland.Stanford.EDU (Britt Park)
  4. Subject: Re: Kernel FP Math bug?
  5. Message-ID: <1993Jan9.234314.20990@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: DSG, Stanford University, CA 94305, USA
  8. References:  <1993Jan9.144510.9590@walter.cray.com>
  9. Date: Sat, 9 Jan 93 23:43:14 GMT
  10. Lines: 17
  11.  
  12. I believe that atof() is broken.  I've had the same experience and I have a 
  13. 387 in my Linux box.  A simple work-around is to replace
  14.  
  15. blab=atof(blabula);
  16.  
  17. by
  18.  
  19. sscanf(blabula,"%lf",&blab);
  20.  
  21. Inelegant, I admit, but it works.
  22.  
  23. I don't know the origin of the problem.  It might be a shared library thing.
  24. I experienced some really strange behavior with some of the early shared X 
  25. libs which went away when I linked things statically.
  26.  
  27.                         Britt Park
  28.                         britt@cb-iris.stanford.edu
  29.