Followup to num2str update (#15518)
This commit is contained in:
@@ -201,7 +201,7 @@ const char* ftostr52(const float &f) {
|
||||
#if ENABLED(LCD_DECIMAL_SMALL_XY)
|
||||
|
||||
// Convert float to rj string with 1234, _123, -123, _-12, 12.3, _1.2, or -1.2 format
|
||||
char* ftostr4sign(const float &f) {
|
||||
const char* ftostr4sign(const float &f) {
|
||||
const int i = (f * 100 + (f < 0 ? -5: 5)) / 10;
|
||||
if (!WITHIN(i, -99, 999)) return i16tostr4sign((int)f);
|
||||
const bool neg = i < 0;
|
||||
|
||||
Reference in New Issue
Block a user