Hi all
I just tried formatting a percentage change for stocks. I was looking for
something like
+5.09%
-5.95%
Trying
<fmt:formatNumber value="${stock.percentageChange}" type="percent"/>
resulted in
509%
-595%
which seems very strange to me - who formats percentages like this? Also,
how to switch on the "+" for positive values?
In the end, I used
<fmt:formatNumber value="${stock.percentageChange}"
pattern="+#0.00;-#0.00"/>%
Hmmm... can I change the percentage formatting somehow?
Best regards,
Eric
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>