Browse Source

Fix typo...

Roxy-3D 5 years ago
parent
commit
2f7e5cf7dd
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/libs/numtostr.cpp

+ 1
- 1
Marlin/src/libs/numtostr.cpp View File

312
 
312
 
313
 // Convert signed float to string with +12.345 format
313
 // Convert signed float to string with +12.345 format
314
 const char* ftostr53sign(const float &f) {
314
 const char* ftostr53sign(const float &f) {
315
-  long i = (f * 1000 + (f < 0 ? -5: 5)) / 10;
315
+  long i = (f * 10000 + (f < 0 ? -5: 5)) / 10;
316
   conv[0] = MINUSOR(i, '+');
316
   conv[0] = MINUSOR(i, '+');
317
   conv[1] = DIGIMOD(i, 10000);
317
   conv[1] = DIGIMOD(i, 10000);
318
   conv[2] = DIGIMOD(i, 1000);
318
   conv[2] = DIGIMOD(i, 1000);

Loading…
Cancel
Save