int main() { float f = 12.2; char *p1; p1 = (char *)&f; printf (\"%d\", *p1); }
This outputs 51.
There is slight deviation to your question I am off the topic,I usually use in such cases the snpritf Example:to fisrt format and then you can play the formatted buffer.