cesanta/mongoose

FIx double printing

cpq opened this issue · 0 comments

cpq commented

Add the following test to the unit_test.c:

TESTDOUBLE("%.5f", 123.12345, "123.12345");

Our double printing function does not correctly handle the precision. %.5f has to print 5 digits after comma, whereas we treat it as total number of digits and thus print 123.12 instead of 123.12345