MCPcopy Create free account
hub / github.com/FastLED/FastLED / append_u64_decimal

Function append_u64_decimal

src/fl/stl/ieee754_string.cpp.hpp:431–437  ·  view source on GitHub ↗

Append the decimal digits of `value` to `out`. Reuses the integer-only `fl::utoa64` helper from `fl/stl/charconv.h` -- no FP arithmetic.

Source from the content-addressed store, hash-verified

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.
431static 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
439fl::string ieee754_format_decimal(u32 bits, int precision) FL_NOEXCEPT {
440 if (precision < 0) precision = 0;

Callers 1

ieee754_format_decimalFunction · 0.85

Calls 2

utoa64Function · 0.85
stringClass · 0.70

Tested by

no test coverage detected