src/Marlin/print_restore_util.cpp
void ftostr31s(float x, char c[8])
{
    char conv[8] = {0};
    int xx=x*10;
    conv[0]=(xx>=0)?'+':'-';
    xx=abs(xx);
    conv[1]=(xx/1000)%10+'0';
    conv[2]=(xx/100)%10+'0';
    conv[3]=(xx/10)%10+'0';
    conv[4]='.';
    conv[5]=(xx)%10+'0';
    conv[6]=0;
    strncpy(c, conv, 8);
}
// Convert float to string with 123.4 format, signed
Convert float to string with 123.4 format, signed
Convert float to string with 123 . 4 format signed
void ftostr31s(float x, char c[8])
{
    char conv[8] = {0};
    int xx=x*10;
    conv[0]=(xx>=0)?'+':'-';
    xx=abs(xx);
    conv[1]=(xx/1000)%10+'0';
    conv[2]=(xx/100)%10+'0';
    conv[3]=(xx/10)%10+'0';
    conv[4]='.';
    conv[5]=(xx)%10+'0';
    conv[6]=0;
    strncpy(c, conv, 8);
}
void ftostr31s ( float x , char c [ 8 ] ) { char conv [ 8 ] = { 0 } ; int xx = x * 10 ; conv [ 0 ] = ( xx >= 0 ) ? ' ' : ' ' ; xx = abs ( xx ) ; conv [ 1 ] = ( xx / 1000 ) % 10 + ' ' ; conv [ 2 ] = ( xx / 100 ) % 10 + ' ' ; conv [ 3 ] = ( xx / 10 ) % 10 + ' ' ; conv [ 4 ] = ' ' ; conv [ 5 ] = ( xx ) % 10 + ' ' ; conv [ 6 ] = 0 ; strncpy ( c , conv , 8 ) ; }
Convert float to string with 123.4 format, signed
Convert float to string with 123 . 4 format signed