To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 5067
    Re: Type conversion IC. —Christopher Prosser
   I don't have IC handy, but you should just be able to do a hard cast. float aFloat = 1.3; int anInteger = 0; anInteger = (int) aFloat; /*cast the float to an int */ /*you can also do it in a function call*/ FuntionTakesAnInt( (int) aFloat ); Hope (...) (26 years ago, 7-Jan-99, to lugnet.robotics.handyboard)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR