Author: bendewey Date: Wed Nov 11 03:59:32 2009 New Revision: 834758 URL: http://svn.apache.org/viewvc?rev=834758&view=rev Log: STONEHENGE-61, Added the number_format function around the gain/loss column
Modified: incubator/stonehenge/trunk/stocktrader/php/trader_client/portfolio.php Modified: incubator/stonehenge/trunk/stocktrader/php/trader_client/portfolio.php URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/trader_client/portfolio.php?rev=834758&r1=834757&r2=834758&view=diff ============================================================================== --- incubator/stonehenge/trunk/stocktrader/php/trader_client/portfolio.php (original) +++ incubator/stonehenge/trunk/stocktrader/php/trader_client/portfolio.php Wed Nov 11 03:59:32 2009 @@ -148,11 +148,11 @@ if ($gain > 0) { - print ("<span class=\"price-gain\">".$gain."</span>"); + print ("<span class=\"price-gain\">".number_format($gain, 2)."</span>"); } else if ($gain < 0) { - print ("<span class=\"price-loss\">".$gain."</span>"); + print ("<span class=\"price-loss\">".number_format($gain, 2)."</span>"); } else {