From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Newsgroups: comp.os.msdos.djgpp Subject: Re: converting grades speed ??? Date: 1 Mar 1998 04:57:20 GMT Organization: The National Capital FreeNet Lines: 15 Message-ID: <6daprg$scc@freenet-news.carleton.ca> References: <6d8rsg$gc4$1 AT o DOT online DOT no> Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) NNTP-Posting-Host: freenet3.carleton.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk BTW if you wish to use the angle measure in grads, there are 400 in a circle so you'd use cos(angle*pi/200). For degrees you'd use cos(angle*pi/180). You might want to precalculate pi/200 or pi/180 instead of redoing this division every time, for speed's sake. (GCC's optimizer would probably CSE it out and do it once for each cos/sin pair, but this allows the division to be done once per run of the program.) -- .*. Friendship, companionship, love, and having fun are the reasons for -() < life. All else; sex, money, fame, etc.; are just to get/express these. `*' Send any and all mail with attachments to the hotmail address please. Paul Derbyshire ao950 AT freenet DOT carleton DOT ca pgd73 AT hotmail DOT com