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

Hi, I need help to convert a floating point to ascii format. I found the command atof() that converts ascii to float, but what about the other way round? Is there any command in C51 that does this? And I want to send the result to PC without using the printf function because it uses a lot of space. How can I do this? Any code examples would help.

Parents
  • Check if your STDLIB.H contains the prototype of strtod. I use C166, but maybe it doesn't differ from C51 in this respect. Obviously, printf uses strtod to perform conversions, but C166 library reference does not mention it.
    - Mike

Reply
  • Check if your STDLIB.H contains the prototype of strtod. I use C166, but maybe it doesn't differ from C51 in this respect. Obviously, printf uses strtod to perform conversions, but C166 library reference does not mention it.
    - Mike

Children