I have a uint32 variable that I need to convert to a decimal character string. Problem is, this variable is a fixed point one in which the lowest several bits (2 or 3, not sure which, yet) represent fractional parts, 1/2, 1/4, and maybe 1/8. I really need to convert those to decimal ASCII character strings such as 123.5 or 9347.75, for example.
I don't see printf() or its cousins doing that. Is there a "simple" ( eg, not a huge code increase over using printf() ) resource to do that, or do I need to kluge up something, myself? Its not THAT hard but it would be nice, not to have to do it.
Oh, yes, the obligatory details: AS7.x and corresponding gcc toolchain. MCU = M328P.