------

dtostrf(y, 10, 5, cbuf); == -0.00001

sprintf(cbuf, "%10.5f", y); == -0.00001

printf("%f", y);-0.000012

------

dtostrf(y, 10, 5, cbuf); == -0.00012

sprintf(cbuf, "%10.5f", y); == -0.00012

printf("%f", y);-0.000123

------

dtostrf(y, 10, 5, cbuf); == -0.00123

sprintf(cbuf, "%10.5f", y); == -0.00123

printf("%f", y);-0.001235

------

dtostrf(y, 10, 5, cbuf); == -0.01234

sprintf(cbuf, "%10.5f", y); == -0.01235

printf("%f", y);-0.012346

------

dtostrf(y, 10, 5, cbuf); == -0.12346

sprintf(cbuf, "%10.5f", y); == -0.12346

printf("%f", y);-0.123457

------

dtostrf(y, 10, 5, cbuf); == -1.23457

sprintf(cbuf, "%10.5f", y); == -1.23457

printf("%f", y);-1.234568

------

dtostrf(y, 10, 5, cbuf); == -12.34568

sprintf(cbuf, "%10.5f", y); == -12.34568

printf("%f", y);-12.345678

------

dtostrf(y, 10, 5, cbuf); == -123.45679

sprintf(cbuf, "%10.5f", y); == -123.45679

printf("%f", y);-123.456787

------

dtostrf(y, 10, 5, cbuf); == -1234.56787

sprintf(cbuf, "%10.5f", y); == -1234.56787

printf("%f", y);-1234.567871

------

dtostrf(y, 10, 5, cbuf); == -12345.67871

sprintf(cbuf, "%10.5f", y); == -12345.67871

printf("%f", y);-12345.678711

------

=================------

dtostrf(y, 10, 5, cbuf); == 0.00001

sprintf(cbuf, "%10.5f", y); == 0.00001

printf("%f", y);0.000012

------

dtostrf(y, 10, 5, cbuf); == 0.00012

sprintf(cbuf, "%10.5f", y); == 0.00012

printf("%f", y);0.000123

------

dtostrf(y, 10, 5, cbuf); == 0.00123

sprintf(cbuf, "%10.5f", y); == 0.00123

printf("%f", y);0.001235

------

dtostrf(y, 10, 5, cbuf); == 0.01234

sprintf(cbuf, "%10.5f", y); == 0.01235

printf("%f", y);0.012346

------

dtostrf(y, 10, 5, cbuf); == 0.12346

sprintf(cbuf, "%10.5f", y); == 0.12346

printf("%f", y);0.123457

------

dtostrf(y, 10, 5, cbuf); == 1.23457

sprintf(cbuf, "%10.5f", y); == 1.23457

printf("%f", y);1.234568

------

dtostrf(y, 10, 5, cbuf); == 12.34568

sprintf(cbuf, "%10.5f", y); == 12.34568

printf("%f", y);12.345678

------

dtostrf(y, 10, 5, cbuf); == 123.45679

sprintf(cbuf, "%10.5f", y); == 123.45679

printf("%f", y);123.456787

------

dtostrf(y, 10, 5, cbuf); == 1234.56787

sprintf(cbuf, "%10.5f", y); == 1234.56787

printf("%f", y);1234.567871

------

dtostrf(y, 10, 5, cbuf); == 12345.67871

sprintf(cbuf, "%10.5f", y); == 12345.67871

printf("%f", y);12345.678711

------