ttg
1
Hi,
Decibels::toString() is useful for all developers I guess.
However it lacks some things that I had to re-write:
- I’d like to have a String without the dB suffix…
- 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!
3 Likes
ed95
2
Yep seems reasonable. I’ll add that.
1 Like
jimc
3
I bet setting decimalPlaces to 0 doesn’t work as you’d expect with it either
(Because String(double, 0) doesn’t work how you’d expect…
1 Like
jules
4
Good call - I’ll have a quick go at tidying it up further…
1 Like