waseem
Joined: 13 Apr 2005 Posts: 241 Helped: 35
|
21 Apr 2007 4:40 Re: float to ascii |
|
|
|
|
Hi!
you can use the "sprintf" function to convert any variable to its ascii values.
unsigned char float_buff[];
temp=23.46;
sprintf(float_buff,"%4.2f",temp);
This will send each digit of the floating point number including the decimal point to the float_buff.
Regards.
|
|