| | number conversions
|
| Is there any way to convert from an integer to a floating point and vice versa in IC? Please someone tell me there is a way! Thanks. Keith Keith Soldavin kas219@email.psu.edu (URL) (27 years ago, 1-Jun-97, to lugnet.robotics.handyboard)
| | | | Re: number conversions
|
| Keith, The way to convert from floating point to int and vice versa in C is called typed casting. It is accomplished as follows: integer_number = (int)floating_point_number; for converting float to int. To convert the other way, simply type: (...) (27 years ago, 2-Jun-97, to lugnet.robotics.handyboard)
| |