Question
How to print float value with sprintf in TrueStudio and H7?
This :
double num= 10.85
int written = sprintf(num_buf, "%1.17g", num);
works in F4 using -u _printf_float into linker commands settings.
But does not work in H7.
Any suggestions?
This :
double num= 10.85
int written = sprintf(num_buf, "%1.17g", num);
works in F4 using -u _printf_float into linker commands settings.
But does not work in H7.
Any suggestions?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.