| 460 | } |
| 461 | |
| 462 | const char *floatstr(float v, bool neat) |
| 463 | { |
| 464 | static char s[2 * MAXSTRLEN]; |
| 465 | static int i = 0; |
| 466 | if(i > MAXSTRLEN - 10) i = 0; |
| 467 | char *t = s + i; |
| 468 | formatstring(t)(!neat && (v) == int(v) ? "%.1f" : "%.7g", v); // was ftoa() |
| 469 | i += strlen(t) + 1; |
| 470 | return t; |
| 471 | } |
| 472 | |
| 473 | void floatret(float v, bool neat) |
| 474 | { |
no outgoing calls
no test coverage detected