MCPcopy Create free account
hub / github.com/FastLED/FastLED / round

Function round

src/fl/math/math.h:318–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316inline float roundf(float value) FL_NOEXCEPT { return round_impl_float(value); }
317template<typename T>
318inline typename enable_if<!is_integral<T>::value, T>::type
319round(T value) FL_NOEXCEPT {
320 return static_cast<T>(round_impl_float(static_cast<float>(value)));
321}
322template<>
323inline double round<double>(double value) FL_NOEXCEPT {
324 return round_impl_double(value);

Callers 10

coordToU8<float>Function · 0.85
coordToU8<double>Function · 0.85
round_impl_doubleFunction · 0.85
build_test_matrixFunction · 0.85
export_for_aiMethod · 0.85
FL_TEST_FILEFunction · 0.85
loopFunction · 0.85
ToRGBMethod · 0.85
toJsonMethod · 0.85
__repr__Method · 0.85

Calls 1

round_impl_floatFunction · 0.85

Tested by

no test coverage detected