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

◆ floor_impl_float()

FL_DISABLE_WARNING_POP float fl::floor_impl_float ( float value)

Definition at line 43 of file math.cpp.hpp.

43 {
44 if (value >= 0.0f) {
45 return static_cast<float>(static_cast<int>(value));
46 }
47 int i = static_cast<int>(value);
48 return static_cast<float>(i - (value != static_cast<float>(i) ? 1 : 0));
49}
constexpr int type_rank< T >::value

References type_rank< T >::value.

Referenced by floor(), floorf(), and fmod_impl_float().

+ Here is the caller graph for this function: