Message-Id: <199812171828.SAA24751@remus.clara.net> From: "Arthur" To: Subject: RE: sin() and cos() ??? Date: Thu, 17 Dec 1998 18:27:24 -0000 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal In-Reply-To: <199812171034.FAA02881@delorie.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com > off course you know that but... > > make it like this: > > float sin_d(float x){ > return sin(x*3.1415926/180); > } I think in math.h, there is a definition called PI. This is much more accurate than what you've got here. So you can use sin(x*PI/180); instead (easier). James Arthur - jaa AT arfa DOT clara DOT net http://www.jado.org/users/arfa/ ICQ#15054819