🩹 Fix ftostrX3sign (#26497)

This commit is contained in:
ellensp 2023-12-05 16:35:12 +13:00 committed by GitHub
parent d5d45e85e4
commit 8cf936ccb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,7 +314,7 @@ const char* ftostr51sign(const_float_t f) { return ftostrX1sign(f, 1); }
// Convert float to string with +/ /- and 3 decimal places // Convert float to string with +/ /- and 3 decimal places
// //
inline const char* ftostrX3sign(const_float_t f, const int index, char plus/*=' '*/) { 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) : ' '; conv[index] = i ? MINUSOR(i, plus) : ' ';
switch (index + 1) { switch (index + 1) {
case 1: conv[1] = DIGIMOD(i, 100000); case 1: conv[1] = DIGIMOD(i, 100000);