We have a simple two-decimal percentage style called "Percent"
%.2f %
which works fine for positive values such as
13.72 %
2.65 %
0.01 %
However, zero values are showing without the trailing %, e.g.
0.00
First I tried adding a zero format to the style
%.2f %; %.2f %
but that didn't change anything.
I had to change "%.2f" to a hard-coded "0.00" display value *and* double the %:
%.2f %; 0.00 %%
Now it displays correctly as
0.00 %
Why doesn't the original style work with a zero value given that zero values are optional? It's like MyDBR refuses to send zero values to sprintf() at all.