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

◆ to_float()

template<typename Derived, int IntBits, int FracBits>
float fl::fixed_point_base< Derived, IntBits, FracBits >::to_float ( ) const
inlineconstexpr

Definition at line 64 of file base.h.

64{ return static_cast<float>(mValue) / (static_cast<raw_type>(1) << FRAC_BITS); }
static constexpr int FRAC_BITS
Definition base.h:38
typename traits::raw_type raw_type
Definition base.h:31
raw_type mValue
Definition base.h:41

References FRAC_BITS, and mValue.