Subject:
|
Re: Type conversion.
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Sun, 21 Feb 1999 16:43:57 GMT
|
Original-From:
|
SHETTI.NITIN.MANGESH <shettin@giasbmc.vsnl.%spamcake%net.in>
|
Viewed:
|
1145 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
|
|
|
|