Rename float32 => float52, etc.

This commit is contained in:
Scott Lahteine
2018-05-01 07:08:47 -05:00
parent d7b699ec34
commit a90d99c27c
5 changed files with 31 additions and 31 deletions

View File

@ -125,7 +125,7 @@ void safe_delay(millis_t ms) {
}
// Convert signed float to fixed-length string with 023.45 / -23.45 format
char* ftostr32(const float &f) {
char* ftostr52(const float &f) {
long i = (f * 1000 + (f < 0 ? -5: 5)) / 10;
conv[1] = MINUSOR(i, DIGIMOD(i, 10000));
conv[2] = DIGIMOD(i, 1000);

View File

@ -63,7 +63,7 @@ void safe_delay(millis_t ms);
char* ftostr12ns(const float &x);
// Convert signed float to fixed-length string with 023.45 / -23.45 format
char* ftostr32(const float &x);
char* ftostr52(const float &x);
// Convert float to fixed-length string with +123.4 / -123.4 format
char* ftostr41sign(const float &x);