From owner-freebsd-chat Fri Jul 30 7:14:41 1999 Delivered-To: freebsd-chat@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 9531C14C08 for ; Fri, 30 Jul 1999 07:14:39 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.1) id QAA56937; Fri, 30 Jul 1999 16:11:24 +0200 (CEST) (envelope-from des) To: "G. Adam Stanislav" Cc: Dag-Erling Smorgrav , chat@FreeBSD.ORG Subject: Re: Changing the value of Pi References: <199907291156.NAA06494@labinfo.iet.unipi.it> <19990730093259.A93194@freebie.lemis.com> <199907300302.XAA15392@khavrinen.lcs.mit.edu> <19990730085617.B228@whizkidtech.net> From: Dag-Erling Smorgrav Date: 30 Jul 1999 16:11:24 +0200 In-Reply-To: "G. Adam Stanislav"'s message of "Fri, 30 Jul 1999 08:56:17 -0500" Message-ID: Lines: 16 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "G. Adam Stanislav" writes: > On Fri, Jul 30, 1999 at 11:26:36AM +0200, Dag-Erling Smorgrav wrote: > > Even if you manage to get them all to agree on one specific value > > (say, 3.14159265359), what are you going to do if you decide to port > > your application to a different system which has higher floating-point > > precision and want to use a more precise value of pi? Search-replace > > throughout the entire source tree? > Is this a trick question? You should just change one occurence in an > include file and run make. You miss the point. Garrett was advocating the use of literal constants instead of centrally defined symbolic constants. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message