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
2244  |  2246
Subject: 
number conversions
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Sun, 1 Jun 1997 05:34:31 GMT
Original-From: 
Keith the wonder wookie <kas219@psu.%spamcake%edu>
Viewed: 
1697 times
  
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
http://www.personal.psu.edu/kas219/



Message has 1 Reply:
  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)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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