34 auto mag = [](
auto n) -> uint8_t {
return floor(
ilog10(floor(abs(n))));};
char * asprintf(const char *fmt, T... args)
Print formatted data to string. Automatically allocates string on the heap. Make sure to delete it im...
uint8_t magnitude() const
Get magnitude (number of digits before the decimal separator) of variable.
char * asprint() const
Print "label: value" to string. Automatically allocates string on the heap. Make sure to delete it im...
void adjust(int16_t delta) const
Add delta to the variable.
struct ConfigPar::Var var
constexpr unsigned int ilog10(int n)
Constexpr integer base-10 logarithm.
constexpr T ipow(T base, unsigned int pow)
Constexpr function for computing integer power.