Re: Concerning number_format()

From: Date: Thu, 06 Nov 2003 14:55:00 +0000
Subject: Re: Concerning number_format()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168729@lists.php.net to get a copy of this message
$price = number_format( (int) $price, 2, '.', ''); Ed Curtis wrote:
I'm using an example straight from the manual on the php site that doesn't seem to work. $price = "1234.567890"; $price = number_format($price, 2, '.', ''); echo $price; Returns 1234.567890 Should return 1234.57 correct? Thanks, Ed


« previous php.general (#168729) next »