Fixed floating point formatting
When decimal_prec is 0 and the value is negative and needs rounding subtract 1, instead of adding 1
When decimal_prec > 0 round before printing the integer part, instead of after
ls
1 parent 1c6fb3b commit b99584d16dc81ecc276951bf4241119ef3570634
@sytse sytse authored on 21 Oct 2021
Showing 1 changed file
View
platform/source/minimal-printf/mbed_printf_implementation.c