From c089fe6981b46436834a9f02ad65881e3c1a8352 Mon Sep 17 00:00:00 2001 From: ellensp <530024+ellensp@users.noreply.github.com> Date: Tue, 5 Dec 2023 16:35:12 +1300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20ftostrX3sign=20(#26497)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/libs/numtostr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/libs/numtostr.cpp b/Marlin/src/libs/numtostr.cpp index 3efbf68217e6c..6f4e4a480bfb4 100644 --- a/Marlin/src/libs/numtostr.cpp +++ b/Marlin/src/libs/numtostr.cpp @@ -314,7 +314,7 @@ const char* ftostr51sign(const_float_t f) { return ftostrX1sign(f, 1); } // Convert float to string with +/ /- and 3 decimal places // inline const char* ftostrX3sign(const_float_t f, const int index, char plus/*=' '*/) { - long i = INTFLOAT(f, 1); + long i = INTFLOAT(f, 3); conv[index] = i ? MINUSOR(i, plus) : ' '; switch (index + 1) { case 1: conv[1] = DIGIMOD(i, 100000);