🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #38128

About mod operator in THINK Pascal 2.0...

#38128
From: Jerome Bordier
Date: Mon, 20 Feb 1989 14:02
16 lines
1192 bytes
Two friends of mine were recently abused by mod operator in THINK Pascal
version 2.0. : the definition of mod as implemented in version 1.0 was
changed in version 2.0.
In fact 2.0 definition is the same as MPW Pascal, Lisa Pascal...
The 1.0 definition is more satisfactory for mathematicians (my friends are
brilliant ones, not me).
The difference can be seen when applying mod to negative numbers.
Be aware of it, you will save debug time.

PS: I apologise if this fact was pointed out before in these newsgroups.

-- 
Jerome BORDIER   Laboratoire Structures Discretes  Institut IMAG
		 B.P. 53 X      38041 GRENOBLE Cedex   France
E.Mail:
bordier@imag.fr  OR  bordier@imag.UUCP (uunet.uu.net!imag!bordier)
Technical Details
Message-ID: <4450@imag.imag.fr>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!inria!imag!bordier

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!inria!imag!bordier
From: bordier@imag.imag.fr (Jerome Bordier)
Newsgroups: comp.sys.mac,comp.sys.mac.programmer
Subject: About mod operator in THINK Pascal 2.0...
Message-ID: <4450@imag.imag.fr>
Date: 20 Feb 89 14:02:01 GMT
Reply-To: bordier@imag.imag.fr (Jerome Bordier)
Organization: IMAG, University of Grenoble, France
Lines: 16