home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4380 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.9 KB  |  38 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!gumby!destroyer!ubc-cs!uw-beaver!news.u.washington.edu!serval!phys1.physics.wsu.edu!hlu
  3. From: hlu@phys1.physics.wsu.edu (Hongjiu Lu)
  4. Subject: Re: Bug Report: Missing strtod in 386BSD, plus code
  5. Message-ID: <1992Aug19.001910.11335@serval.net.wsu.edu>
  6. Sender: news@serval.net.wsu.edu (USENET News System)
  7. Organization: Washington State University
  8. References: <1992Aug16.215006.16480@NeoSoft.com> <1992Aug17.182133.16570@serval.net.wsu.edu> <1992Aug18.154258.25227@NeoSoft.com>
  9. Date: Wed, 19 Aug 92 00:19:10 GMT
  10. Lines: 26
  11.  
  12. In article <1992Aug18.154258.25227@NeoSoft.com>, karl@NeoSoft.com (Karl Lehenbauer) writes:
  13. |> hlu@phys1.physics.wsu.edu (Hongjiu Lu) writes:
  14. |> Please don't use it. The code is a joke. Please send a note to
  15. |> David M. Gay at dmg@research.att.com. He has what you want.
  16. |> 
  17. |> It's not like it calls scanf or something.  I can't read your mind.  What
  18. |> is wrong with it?  And why don't you just post the code?
  19. |> -- 
  20. |> -- Email info@NeoSoft.com for info on getting interactive Internet access.
  21. |> You will now awaken feeling relaxed and refreshed, remembering everything 
  22. |> you've read except the details of the Omega contingency plan.
  23.  
  24. The precision of strtod () in bsd and glibc is too low to use. I found
  25. out it while I was implementing the Linux C library. I had to hack one myself. In libg++.a 2.2, Per included the strtod () by David M. Gay, which does the 
  26. same thing, except for mine was a quick hack. Since I have been using Per's
  27. iostream based stdio in the Linux C library, I just used his strtod () in
  28. libg++.a 2.2 to replace mine in the Linux C library.
  29.  
  30. To get a real strtod (), you should get libg++.a 2.2. Take a look at
  31. libg++-2.2/libg++/iostream/dtoa.C. BTW, it is wriiten in C. If you
  32. somehow don't want to use it, I can make mine available for you.
  33.  
  34.  
  35. -- 
  36. H.J.
  37. Gcc/libc maintainer for Linux.
  38.