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

◆ lround_impl_float()

long fl::lround_impl_float ( float value)

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

363 {
364#if FL_MATH_USE_LIBM
365 return ::lroundf(value);
366#else
367 if (value >= 0.0f) return static_cast<long>(value + 0.5f);
368 return static_cast<long>(value - 0.5f);
369#endif
370}
constexpr int type_rank< T >::value

References type_rank< T >::value.

Referenced by lroundf(), and round_impl_float().

+ Here is the caller graph for this function: