Decibels::toString() minor "pull" request


#1

Hi,
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.

Thanks!


#2

Yep seems reasonable. I’ll add that.


#3

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…


#4

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