home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.scheme
- Path: sparky!uunet!spool.mu.edu!darwin.sura.net!jvnc.net!nj.nec.com!zilla
- From: zilla@ccrl.nj.nec.com (John Lewis)
- Subject: Re: Why is the exact/inexact distinction built into Scheme?
- Message-ID: <1992Nov21.235203.22285@research.nj.nec.com>
- Sender: news@research.nj.nec.com
- Organization: C&C Research Labs, NEC USA, Princeton, N.J.
- References: <1992Nov17.182740.11194@cs.brown.edu>
- Date: Sat, 21 Nov 92 23:52:03 GMT
- Lines: 9
-
- r.e. the exact/inexact distinction, I think you want to use (truncate x).
- I also find the exact/inexact distinction to be a nuisance,
- along with the whole scheme numerical system,
- despite the beauty of the rest of the language.
-
- (/ 5 3) and (/ 5. 3.) will give answers such as 5/3, 1.666666, and 1
- in different dialects. I end up coding in terms of constructs
- such as (tofloat x) and (toint x) which I then attempt to implement
- using the behavior of the particular dialect.
-