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

◆ float_is_finite()

bool fl::printf_detail::float_is_finite ( float value)

Definition at line 6 of file stdio.cpp.hpp.

6 {
7 if (value != value) {
8 return false;
9 }
10 // FLT_MAX, spelled out. The old bound, 3.5e38f, overflows float to
11 // infinity, so the check only worked because of that overflow.
12 return value >= -3.40282347e38f && value <= 3.40282347e38f;
13}
constexpr int type_rank< T >::value

References fl::FL_NO_EXCEPT, and fl::type_rank< T >::value.

Referenced by format_float().

+ Here is the caller graph for this function: