home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / lisp / 2220 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1016 b 

  1. Path: sparky!uunet!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: floating point precision
  5. Date: 14 Aug 1992 07:37:53 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 14
  8. Message-ID: <16fnshINN7db@early-bird.think.com>
  9. References: <1992Aug13.213615.28011@cs.yale.edu>
  10. NNTP-Posting-Host: gandalf.think.com
  11.  
  12. In article <1992Aug13.213615.28011@cs.yale.edu> yip-ken@CS.YALE.EDU (ken yip) writes:
  13. >How can one specify the floating point precision of a numerical 
  14. >routine?
  15.  
  16. All the mathematical functions in CL are generic, and will operate on any
  17. floating point types, returning results of the same type (if multiple
  18. arguments of different types are provided, it will coerce them all to the
  19. largest one).  So, if you want to see the result of performing the
  20. computation in double-float, provide double floats as the initial input.
  21. -- 
  22. Barry Margolin
  23. System Manager, Thinking Machines Corp.
  24.  
  25. barmar@think.com          {uunet,harvard}!think!barmar
  26.