Path: chuka.playstation.co.uk!news From: Steve Randerson Newsgroups: scee.yaroze.programming.codewarrior Subject: float and integer trouble Date: Thu, 11 Jun 1998 21:53:12 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 12 Message-ID: <358043B8.19F1@cs.bham.ac.uk> NNTP-Posting-Host: dial3.bham.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.02 (Win95; I) I seem to be having a bit of trouble with integers and floats. I'm a Java programmer normally and don't have much experience with C so it may be me being crap but anyway. whenever I try any arithmetic involving a float and an integer i get errors from codearrior. it compiles fine but has a linker error saying it can't find _f_ftoi. I presume it is legal to add a float aand an int otherwise it would have a compiler error. I've tried searching all the header files to see if I can find ftoi but i can't. If anyone has any suggestions, or what i'm trying is just not possible then any help would be much appreciated. cheers steve