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 / 5596
5595  |  5597
Subject: 
Re: Type conversion.
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Sun, 21 Feb 1999 16:43:57 GMT
Original-From: 
SHETTI.NITIN.MANGESH <SHETTIN@stopspamGIASBMC.VSNL.NET.IN>
Viewed: 
880 times
  
Dear Federico,
Typecast the integer into float.
ie write the statement as


dtemp=(float)temp*3.5

Refer to any C book for information on typecasting.

Yours sincerely,
    Nitin

On Fri, 19 Feb 1999, FEDERICO SANTELLO wrote:

Hi to all.

I'm not very practice with IC.
My answere are , how can i convert a integer number to a floating point
number?
I want to make a moltiplication between an intger number and a floating.
I make this:

          int temp;
          float dtemp;

         dtemp=temp*3.5;



But when i try to download i've an error type not compatible.

Thank Federico Santello.
E.mail: fedsante@tin.it










Message is in Reply To:
  Type conversion.
 
Hi to all. I'm not very practice with IC. My answere are , how can i convert a integer number to a floating point number? I want to make a moltiplication between an intger number and a floating. I make this: int temp; float dtemp; dtemp=temp*3.5; (...) (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)

5 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