Subject:
|
Reading floating point numbers
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Thu, 15 May 1997 14:15:00 GMT
|
Original-From:
|
Baggerman, Clinton D. <CBAGGERM@GP904.JSC.NASA.nomorespamGOV>
|
Viewed:
|
1801 times
|
| |
| |
My problem is that I need to read in a floating point number through the
serial port. I tried using the serial_getchar function to read in the
number
as an int, then convert it to a float, but that was unsuccessful. I
also
tried altering the serial_getchar funtion to read in the number as a
char and
then convert it, but that also did not work. Does anyone know of
another
function or a way to alter the serial_getchar function to read in
floats?
Thanks.
Clint Baggerman
|
|
Message has 1 Reply: | | Re: Reading floating point numbers
|
| Baggerman, Clinton D. spake unto the ether: (...) Clint, I already have the converse of this problem (i.e., printing floats (and ints) to a remote console via serial_putchar()) solved. I'm currently working with Fred Martin to make these routines (...) (28 years ago, 15-May-97, to lugnet.robotics.handyboard)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|