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 / 8618
  Interactive C
 
(Perhaps this isn't the right place to ask questions about I.C. but it is related to the handy board so I will continue) I am trying to write a program that uses the lego sensors and multiplies them by constants that are floats. The expansion board (...) (23 years ago, 25-Feb-02, to lugnet.robotics.handyboard)
 
  Re: Interactive C
 
You have to coerce the int to a float, e.g: int i= 7; float j= 3.; float result; result = j * (float)i; The above should work. Please let me know if not. Fred (...) (23 years ago, 25-Feb-02, to lugnet.robotics.handyboard)

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