Commit 6f3d25ea authored by Sandeep Mistry's avatar Sandeep Mistry

Merge pull request #4667 from bblanchon/patch-1

Speed and size improvement in Print::printFloat()
parents 0fd65027 437eabea
......@@ -257,7 +257,7 @@ size_t Print::printFloat(double number, uint8_t digits)
while (digits-- > 0)
{
remainder *= 10.0;
int toPrint = int(remainder);
unsigned toPrint = unsigned(remainder);
n += print(toPrint);
remainder -= toPrint;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment