Decibels::toString() minor "pull" request


Decibels::toString() is useful for all developers I guess.

However it lacks some things that I had to re-write:

  1. I’d like to have a String without the dB suffix…
  2. For the -INF value I’d like to be able to set my own custom “string” (since it can be -inf, symbol or even empty String.

Those changes can be add with default values so it won’t break old code.



Yep seems reasonable. I’ll add that.


I bet setting decimalPlaces to 0 doesn’t work as you’d expect with it either :slight_smile: (Because String(double, 0) doesn’t work how you’d expect…


Good call - I’ll have a quick go at tidying it up further…