2019-07-18 05:52 AM
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?
2019-07-19 02:53 PM
The pow() function is slow, big and doesn't guaranty exact integer result. A simple loop with integer multiplication is much faster and takes less code.
2019-07-19 08:47 PM
I've been using this: https://github.com/mpaland/printf for my printf needs.
2019-07-20 01:21 AM
This one looks really nice!
2019-07-20 01:54 AM
Very nice, will try on my H7