| | 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)
|