🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #2734

Re: Any ideas on fixed point addition?

#2734
From: C.E. Thompson
Date: Tue, 15 Sep 1992 22:19
25 lines
1296 bytes
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
Technical Details
Message-ID: <1992Sep15.221949.22190@infodev.cam.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!pavo.csi.cam.ac.uk!camcus!cet1
References: <1992Sep14.220128.16318@Princeton.EDU> <15SEP199203465090@reg.triumf.ca> <1992Sep15.145606.21328@Princeton.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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