Subject:
|
type conversion
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Wed, 13 Aug 1997 15:41:32 GMT
|
Original-From:
|
David.J.Dostal@!nospam!lawrence.edu
|
Viewed:
|
1534 times
|
| |
| |
Hello,
Does IC do type conversions like C? More specifically, if I have a
persistent int that needs to become a global float to be used by a function,
can this code do the conversion?
persistent int ifactor;
float factor;
void foo(void)
{
ifactor = 10;
factor = 1.0 * ifactor;
}
Or, is there any more slick way to do this?
Thanks,
David
|
|
Message has 1 Reply: | | Re: type conversion
|
| D> Hello, Does IC do type conversions like C? More specifically, if D> I have a persistent int that needs to become a global float to be D> used by a function, can this code do the conversion? D> persistent int ifactor; D> float factor; D> void (...) (27 years ago, 13-Aug-97, to lugnet.robotics.handyboard)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|