Re: Formating a Double

From: Date: Thu, 07 Sep 2006 01:57:15 +0000
Subject: Re: Formating a Double
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241432@lists.php.net to get a copy of this message
number_format() Now, why do you say it's not working properly? Note: number_format() takes a float as an argument, not a string, and even if it were, the double would be casted to string. Phillip Baker wrote:
Greetings All, I am trying to format a double to use thousands seperators and such. number_format does not appear to be working properly for this. My guess is cause I am trying to format a double rather than a string. Is there anything out there that will allow me to format a double to include a comma as a thousands seperator. Thanks.
-- Atentamente / Sincerely, J. Rafael Salazar Magaña

« previous php.general (#241432) next »