FastLED 3.10.6
Loading...
Searching...
No Matches

◆ operator()() [2/7]

void fl::StringConversionVisitor::operator() ( const double & value)
inline

Definition at line 678 of file types.h.

678 {
679#if FL_PLATFORM_HAS_LARGE_MEMORY
680 // Convert double to string with higher precision for JSON representation
681 result = fl::to_string(static_cast<float>(value), 6);
682#else
683 // Low-memory gate per FastLED #3224 Tier 1A: drop the float -> string
684 // path. `fl::to_string(float, prec)` calls `basic_string::append(float,
685 // int)` which calls `ftoa` -> `printf_detail::format_float` -- that
686 // anchors `__aeabi_fadd/fsub/fmul/f2iz/fcmp*` (~3 KB single-prec
687 // soft-FP on no-FPU). LPC8xx integer-only RPC contract never emits
688 // floats so this path is unreachable; saturate to "0".
689 (void)value;
690 result = "0";
691#endif
692 }
constexpr int type_rank< T >::value
string to_string(T value) FL_NO_EXCEPT
Definition string.h:459
fl::optional< fl::string > result
Definition types.h:661

References fl::FL_NO_EXCEPT, result, fl::to_string(), and fl::type_rank< T >::value.

+ Here is the call graph for this function: