home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!pavo.csi.cam.ac.uk!camcus!cet1
- From: cet1@cus.cam.ac.uk (C.E. Thompson)
- Newsgroups: comp.text.tex
- Subject: Re: Any ideas on fixed point addition?
- Message-ID: <1992Sep15.221949.22190@infodev.cam.ac.uk>
- Date: 15 Sep 92 22:19:49 GMT
- References: <1992Sep14.220128.16318@Princeton.EDU> <15SEP199203465090@reg.triumf.ca> <1992Sep15.145606.21328@Princeton.EDU>
- Sender: news@infodev.cam.ac.uk (USENET news)
- Organization: U of Cambridge, England
- Lines: 25
- Nntp-Posting-Host: grus.cus.cam.ac.uk
-
- In article <1992Sep15.145606.21328@Princeton.EDU>, tvz@zandtwerk.Princeton.EDU
- (Timothy Van Zandt) writes:
- |>
- |> occasional rounding errors. E.g., using the method given above,
- |> one gets:
- |>
- |> 1 + 2 = 3.0
- |>
- |> 1.05 + 2.05 = 3.1
- |>
- |> 8.10 + 3.05 = 11.15001
- |>
- |>
- |> This last example, due to rounding errors inside TeX when converting
- |> between sp and pt, may vary from system to system.
-
- It certainly shouldn't: TeX's (visible) arithemtic is portable and
- should give the same results in all implementations. (There are some
- potential exceptions, but they involve arithmetic overflow, which
- isn't involved here.)
-
- Chris Thompson
- Cambridge University Computing Service
- JANET: cet1@uk.ac.cam.phx
- Internet: cet1@phx.cam.ac.uk
-