Mega Code Archive

 
Categories / C / Code Snippets
 

Output float and hexadecimal

#include <stdio.h> int main(void) { printf("%x %#x\n", 10, 10); printf("%*.*f", 10, 4, 3668.69); return 0; }