home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / ada / 3827 < prev    next >
Encoding:
Text File  |  1992-12-28  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!enterpoop.mit.edu!linus!philabs!acheron!scifi!watson!yktnews!admin!ncohen
  3. From: ncohen@watson.ibm.com (Norman H. Cohen;355589)
  4. Subject: Re: VALUE and IMAGE operations for FLOAT
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <1992Dec28.144555.31627@watson.ibm.com>
  7. Date: Mon, 28 Dec 1992 14:45:55 GMT
  8. Reply-To: ncohen@watson.ibm.com
  9. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  10. References:  <1h9j75INNs2i@rave.larc.nasa.gov>
  11. Nntp-Posting-Host: prener.watson.ibm.com
  12. Organization: IBM T.J. Watson Research Center
  13. Keywords: Type Conversion VALUE IMAGE FLOAT
  14. Lines: 25
  15.  
  16. In article <1h9j75INNs2i@rave.larc.nasa.gov>, matthias@nimbus.larc.nasa.gov
  17. (Larry Matthias) writes: 
  18.  
  19. |>      I am interested in finding a software reuseable package that
  20. |> performs the equivalent VALUE and IMAGE operations but for the FLOAT
  21. |> type. I saw that Grady Booch has a package in his "Software Components
  22. |> with Ada" that supports this in the package Floating_Point_Utilities.
  23. |> However, only the package specification is included in the book. You
  24. |> must send away for the implementation.
  25. |>
  26. |>      Where can you get these package? How much are they (remember
  27. |> the deficit)?
  28.  
  29. Here's a solution that even those on a government budget can afford: 
  30.  
  31. Instantiate Text_IO.Float_IO.  Use the string-to-float version of Get to
  32. write your own Value function (or use Get directly if that solves your
  33. problem).  Use the float-to-string version of Put write your own Image
  34. function (or use Put directly).
  35.  
  36. Your compiler maker has already done the hard work by providing these
  37. procedures.
  38.  
  39. --
  40. Norman H. Cohen    ncohen@watson.ibm.com
  41.