View previous topic :: View next topic |
Author |
Message |
karth
Joined: 10 Sep 2003 Posts: 29
|
ftoa |
Posted: Tue May 16, 2006 10:01 am |
|
|
does anyone know how to convert ccs 4byte float to decimal manually???
thank you |
|
|
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
|
|
karth
Joined: 10 Sep 2003 Posts: 29
|
|
Posted: Tue May 16, 2006 10:58 am |
|
|
thanks but I need to know how to conver ccs 32 byte hex into ascii' |
|
|
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
|
|
Posted: Tue May 16, 2006 11:34 am |
|
|
There is a special function to do that.
printf |
|
|
karth
Joined: 10 Sep 2003 Posts: 29
|
|
Posted: Tue May 16, 2006 11:44 am |
|
|
I don't want to output through UART |
|
|
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
|
Posted: Tue May 16, 2006 11:48 am |
|
|
sprintf()
rtfm() |
|
|
rwyoung
Joined: 12 Nov 2003 Posts: 563 Location: Lawrence, KS USA
|
|
Posted: Tue May 16, 2006 4:07 pm |
|
|
kender wrote: | sprintf()
rtfm() |
Didn't you mean : _________________ Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month! |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Tue May 16, 2006 6:41 pm |
|
|
kender wrote: | sprintf()
rtfm() |
Read it better, you forgot about
ITOA() |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Wed May 17, 2006 1:28 am |
|
|
Mark wrote: | kender wrote: | sprintf()
rtfm() |
Read it better, you forgot about
ITOA() | The original question was about how to convert a 4byte float, not an integer. So sprintf() is correct. |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Wed May 17, 2006 6:40 am |
|
|
ckielstra wrote: | Mark wrote: | kender wrote: | sprintf()
rtfm() |
Read it better, you forgot about
ITOA() | The original question was about how to convert a 4byte float, not an integer. So sprintf() is correct. |
Well his first post said float but his second said "32 byte hex" which I took it that he meant "32 bit hex" which is not a float. |
|
|
|