C: %5.2f within a print command, proceeded by extra space
idbruce
Posts: 6,197
I do not know if this is the norm, but if you use %5.2f within a print command, the data is proceeded by a space.
I don't believe it would be the norm, so I am mentioning it as a heads up
However, my assumption could be wrong
I don't believe it would be the norm, so I am mentioning it as a heads up
However, my assumption could be wrong
Comments
My bad. I really haven't done that much formatting in the past, except for time based strings. However as you point out, I am sure there is plenty of documentation. As much as I hate to admit it, programming microcontrollers is in many ways more complicated than writing a Windows program. There is so much to learn.
The %.2f format worked great. Thank you.
Didn't know that. Thanks