converting string to monetary format

From: Date: Tue, 13 Apr 2004 15:55:26 +0000
Subject: converting string to monetary format
Groups: php.general 
Request: Send a blank email to php-general+get-183245@lists.php.net to get a copy of this message
Simple problem... I want to manipulate with PHP function to get "desired output" below. $var="59.9" Desired Output: $var="59.90" I thought number_format would do the trick but no way, unless I just missed something.. ? Any quick way to do this using a built in PHP function? I could do it the long way but not really my intereste ATM. Thanks, Kris

« previous php.general (#183245) next »