From: Gareth Evans Newsgroups: comp.os.msdos.djgpp Subject: Help! Djgpp, Allegro, Floats and Ints!! Date: Tue, 07 Jul 1998 14:54:50 +1200 Organization: The Internet Group Ltd Lines: 12 Message-ID: <35A18DF3.B7A4007D@yahoo.com> NNTP-Posting-Host: p23-max19.akl.ihug.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I have a c plus plus program that has varibles that are floats. (float x, y;) It also has a bitmap (BITMAP *object;) I need to use draw_trans_sprite(BITMAP *source, BITMAP *dest, int x, int y) to draw BITMAP *object to the position defined in the varibles float x, y. The compiler refuses because I am not passing Draw_trans_sprite an integer. What are the routines (if any) to convert between different types of varibles. If you have done basic, then an example is INT(.6738528) - this will convert the number to 1.