Closed prasadtiru closed 3 years ago
Can we implement a floattostring
for the example
It's basically something like this right?
#define BUF_SIZE 12
char buf[BUF_SIZE] = {0}
snprintf("%f",BUF_SIZE,val)
Can we implement a
floattostring
for the exampleIt's basically something like this right?
#define BUF_SIZE 12 char buf[BUF_SIZE] = {0} snprintf("%f",BUF_SIZE,val)
Yes. I added it now in the updated blog.
The blog is updated with C code.