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

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