This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Float to ascii conversion 8052

Hi
I am looking for source for 8052.
Float to ascii conversion
float "lenght" is in the range
-99999.999 to 99999.99
Thank you very much

mbosko@ptt.yu

Parents
  • Do you need to aviod using printf?

    Your required range seems rather strange.

    Still, given that you only seem to need 8 or so digits, you could convert n by multiplying by 1000, and then treat the result as a fixed point number that is relatively easy to convert to ASCII.

Reply
  • Do you need to aviod using printf?

    Your required range seems rather strange.

    Still, given that you only seem to need 8 or so digits, you could convert n by multiplying by 1000, and then treat the result as a fixed point number that is relatively easy to convert to ASCII.

Children