home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.lisp
- Path: sparky!uunet!gumby!yale!cs.yale.edu!yip-ken
- From: yip-ken@CS.YALE.EDU (ken yip)
- Subject: Re: floating point precision
- Message-ID: <1992Aug14.175857.7314@cs.yale.edu>
- Sender: news@cs.yale.edu (Usenet News)
- Nntp-Posting-Host: australia.ai.cs.yale.edu
- Organization: Yale University, Department of Computer Science
- References: <1992Aug13.213615.28011@cs.yale.edu> <16fnshINN7db@early-bird.think.com>
- Date: Fri, 14 Aug 1992 17:58:57 GMT
- Lines: 24
-
-
-
- In article <16fnshINN7db@early-bird.think.com>, you write:
- |> In article <1992Aug13.213615.28011@cs.yale.edu> yip-ken@CS.YALE.EDU (ken yip) writes:
- |> >How can one specify the floating point precision of a numerical
- |> >routine?
- |>
- |> All the mathematical functions in CL are generic, and will operate on any
- |> floating point types, returning results of the same type (if multiple
- |> arguments of different types are provided, it will coerce them all to the
- |> largest one). So, if you want to see the result of performing the
- |> computation in double-float, provide double floats as the initial input.
- |> --
- |> Barry Margolin
-
- That's what I hope is the case. But apparently in the Lucid implementation,
- all floats are automatically coerced into double-float (51-bit precision).
- E.g. (* 1.2 3.4)
- will still return a float with 51-bit precision. Correct me
- if I am wrong on this. So my questions are:
- (1) Can one emulate 13-bit or 24-bit precision in Lucid? (2) Which
- lisp implementation actually does what Barry said?
-
-
-