Friday, April 21, 2017

format float to string converstion using C

Example of use:

float val = 123.456789123 ;
char output[11];
snprintf(output, 11, "%f", val);

src: http://stackoverflow.com/questions/7228438/convert-double-float-to-string