FastLED 3.10.8
Loading...
Searching...
No Matches

◆ floor_impl_float()

FL_DISABLE_WARNING_POP float fl::floor_impl_float ( float value)

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

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

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

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

+ Here is the caller graph for this function: