 | | Re: Type conversion IC.
|
|
I don't have IC handy, but you should just be able to do a hard cast. float aFloat = 1.3; int anInteger = 0; anInteger = (int) aFloat; /*cast the float to an int */ /*you can also do it in a function call*/ FuntionTakesAnInt( (int) aFloat ); Hope (...) (27 years ago, 7-Jan-99, to lugnet.robotics.handyboard)
|
| |
 | | type conversion
|
|
Hi to all And HAPPY NEW YEAR. I have a question. How can i convert a floating variable into a integer variable? I must send via serial line the result of the functions SECONDS(). Thank Federico E-mail:fedsante@tin.it (27 years ago, 6-Jan-99, to lugnet.robotics.handyboard)
|
| |
 | | Type conversion IC.
|
|
Hi to all And HAPPY NEW YEAR. I have a question. How can i convert a floating variable into a integer variable? I must send via serial line the result of the functions SECONDS(). Thank Federico E-mail:fedsante@tin.it (27 years ago, 6-Jan-99, to lugnet.robotics.handyboard)
|
| |
 | | Re: Handyboard power supply
|
|
what is the amp-hour rating of each cell. standard AA rechargables are 500 to 800 mAh. if your cells are significantly different than this, the charging might not work properly. generally though i don't see too many probs with this. you might need (...) (27 years ago, 6-Jan-99, to lugnet.robotics.handyboard)
|
| |
 | | GP2D02?
|
|
If anyone who has successfully interfaced the GP2D02 to the Handyboard would share that knowledge with the less experienced, it would be greatly appreciated. Thanks! (27 years ago, 6-Jan-99, to lugnet.robotics.handyboard)
|