Date: 30 Jul 1999 16:11:24 +0200 From: Dag-Erling Smorgrav <des@flood.ping.uio.no> To: "G. Adam Stanislav" <adam@whizkidtech.net> Cc: Dag-Erling Smorgrav <des@flood.ping.uio.no>, chat@FreeBSD.ORG Subject: Re: Changing the value of Pi Message-ID: <xzpoggu1b3n.fsf@flood.ping.uio.no> In-Reply-To: "G. Adam Stanislav"'s message of "Fri, 30 Jul 1999 08:56:17 -0500" References: <Pine.BSF.4.10.9907291008390.13541-100000@janus.syracuse.net> <199907291156.NAA06494@labinfo.iet.unipi.it> <19990730093259.A93194@freebie.lemis.com> <199907300302.XAA15392@khavrinen.lcs.mit.edu> <xzp7lni32ur.fsf@flood.ping.uio.no> <19990730085617.B228@whizkidtech.net>
next in thread | previous in thread | raw e-mail | index | archive | help
"G. Adam Stanislav" <adam@whizkidtech.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpoggu1b3n.fsf>