FastLED 3.9.15
Loading...
Searching...
No Matches

◆ u0x32() [2/4]

fl::u0x32::u0x32 ( float f)
inlineexplicitconstexpr

Definition at line 42 of file u0x32.h.

43 : mValue(f <= 0.0f ? 0U : // Exactly 0.0
44 f >= 1.0f ? 0xFFFFFFFFU : // Max positive (0.9999999997...)
45 static_cast<u32>(f * 4294967296.0f)) {}
u32 mValue
Definition u0x32.h:163

References u0x32(), constexpr, FL_NOEXCEPT, and mValue.

+ Here is the call graph for this function: