cesanta / mongoose

Embedded Web Server
https://mongoose.ws
Other
11.16k stars 2.73k forks source link

Fix floating point printing #2943

Open cpq opened 1 month ago

cpq commented 1 month ago

We have our own printf implementation, and right now it incorrectly handles floating point width and precision in

What to do: re-enable floating point tests in unit_test.c and modify mg_dtoa function to execute these tests successfully.

Changes in mg_dtoa() should be minimal.