Re: Percentage formatting strange

2002-07-25 Thread Shawn Bayern
The value you're sending to the page is presumably 5.09 (or -5.95). Percentage formatting in JSTL, as in Java, treats your value as a multiple; thus, to format as a percentage, it multiplies by 100. (That is, 5% is really .05; 500% indicates a multiplier of 5.) Since your need doesn't really c

Percentage formatting strange

2002-07-25 Thread Eric . Lewis
Hi all I just tried formatting a percentage change for stocks. I was looking for something like +5.09% -5.95% Trying 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 % Hmmm...