delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/17/00:45:22.1

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Brent Ritchie" <Juicer_X AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <5cp%7.332292$ez DOT 47656452 AT news1 DOT rdc1 DOT nj DOT home DOT com>
Subject: Re: allegro and math libraries
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <m%Gb8.37386$NP4.4356791@news20.bellglobal.com>
Date: Sun, 17 Feb 2002 00:15:08 -0500
NNTP-Posting-Host: 64.231.112.111
X-Complaints-To: abuse AT sympatico DOT ca
X-Trace: news20.bellglobal.com 1013922898 64.231.112.111 (Sun, 17 Feb 2002 00:14:58 EST)
NNTP-Posting-Date: Sun, 17 Feb 2002 00:14:58 EST
Organization: Bell Sympatico
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Just a suggestion, you shouldn't rely on *magic* numbers like 3.1415. In my
opinion it's not good practice. I use this method.

const float pi = (atan(1)*4);

You then can go pi/180 or what ever, this method is also alot more accurate
IMHO, plus it makes the code easier to understand. Just suggestions not
trying to make anyone mad.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019