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

sprintf outup is "???"

All,

I've used sprintf with no problems many times. But in my current program when I try and print out a floating point number I just get question marks.

sprintf(buffer, "%f", 4.1);

After running that line, buffer contains the string: "???"

Is there maybe a compiler option that is disabling floating point?

Thanks,
Matt

Parents
  • I am using the commercial uvision V4.02.

    Since I am adding to an existing project, one that never used floating points in the past, I was wondering if there might be some option that takes out floating point math in order to optimize the code. If I just start a new project it seems to work fine... So I suspect that there is just some configuration that I am missing.

Reply
  • I am using the commercial uvision V4.02.

    Since I am adding to an existing project, one that never used floating points in the past, I was wondering if there might be some option that takes out floating point math in order to optimize the code. If I just start a new project it seems to work fine... So I suspect that there is just some configuration that I am missing.

Children