Append the decimal digits of `value` to `out`. Reuses the integer-only `fl::utoa64` helper from `fl/stl/charconv.h` -- no FP arithmetic.
| 429 | // Append the decimal digits of `value` to `out`. Reuses the integer-only |
| 430 | // `fl::utoa64` helper from `fl/stl/charconv.h` -- no FP arithmetic. |
| 431 | static void append_u64_decimal(fl::string& out, fl::u64 value) FL_NOEXCEPT { |
| 432 | char buf[24]; |
| 433 | const int n = fl::utoa64(value, buf, 10); |
| 434 | for (int i = 0; i < n; ++i) { |
| 435 | out += fl::string(1, buf[i]); |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | fl::string ieee754_format_decimal(u32 bits, int precision) FL_NOEXCEPT { |
| 440 | if (precision < 0) precision = 0; |
no test coverage detected