From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: (none) Date: Wed, 8 Jul 1998 23:15:32 -0300 Organization: University of New Brunswick Lines: 11 Message-ID: References: <199807082216 DOT RAA10871 AT cue DOT satnet DOT net> NNTP-Posting-Host: sol-alt1.unb.ca Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <199807082216.RAA10871@cue.satnet.net> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Wed, 8 Jul 1998, Ronald Patino G. wrote: ->Is there a function to round a number with decimals -> ex, 23.123123123 float z=23.123123123; int x = (int)(z+.5); That will round z, and put the value in x; Endlisnis [I have a pyramid of wingyness]