home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!edcastle!aiai!jeff
- From: jeff@aiai.ed.ac.uk (Jeff Dalton)
- Newsgroups: comp.lang.lisp
- Subject: Re: floating point precision
- Message-ID: <7215@skye.ed.ac.uk>
- Date: 14 Aug 92 17:35:18 GMT
- References: <1992Aug13.213615.28011@cs.yale.edu>
- Sender: news@aiai.ed.ac.uk
- Organization: AIAI, University of Edinburgh, Scotland
- Lines: 11
-
- 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? I was writing a LU-decomposition for solving linear equations.
- >To see the effect of precision on accuracy, I want to run the code in
- >short-float, double-float, and long-float. Is there a simple way to
- >do this short of explicitly declaring every single variable in the
- >program and all the functions it call? I am using Lucid.
-
- So you win! (I think.) In Lucid, you can use a type-reduce
- declaration to say all numbers are, say, single-floats.
-