Date: Thu, 29 Oct 1998 17:35:44 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Derek Greene cc: djgpp AT delorie DOT com Subject: Re: Round function? In-Reply-To: <36374585.CADABD29@mindspring.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Wed, 28 Oct 1998, Derek Greene wrote: > Is there a functionf or rounding off real numbers when casting to > integers or will a normal type cast do the trick? TIA DJGPP has a function called `rint' which rounds a number. You need to link with -lm to get it, since it's in libm.a which by default isn't scanned by the linker. Most Unix compiler also support `rint' although it isn't ANSI.