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

◆ round() [1/2]

template<typename T>
enable_if<!is_integral< T >::value, T >::type fl::round ( T value)
inline
Examples
Chromancer.ino.

Definition at line 319 of file math.h.

319 {
320 return static_cast<T>(round_impl_float(static_cast<float>(value)));
321}
constexpr int type_rank< T >::value
float round_impl_float(float value)
Definition math.cpp.hpp:384

References FL_NOEXCEPT, round_impl_float(), and type_rank< T >::value.

Referenced by fl::gfx::coordToU8< double >(), fl::gfx::coordToU8< float >(), and loop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: