I need to convert a int to either a long or float. I've always had a compiler that auto converts. I don't remember how to do it. I'd welcome any help. Jim (29 years ago, 26-Sep-96, to lugnet.robotics.handyboard)
(...) Coercion is done by putting the type you want to convert it to in parens before the thing being converted; e.g.: float f = (float) 33; int i = (int) 10.; best, Fred (29 years ago, 26-Sep-96, to lugnet.robotics.handyboard)