Re: number_format
| From: | Stut | Date: | Tue, 30 May 2006 17:59:37 +0000 |
| Subject: | Re: number_format | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237101@lists.php.net to get a copy of this message | ||
João Cândido de Souza Neto wrote:
I´m having some troubles with the number_format function. When i run a number_format("3000",2,",",".") if returns correctly, but when i try to run number_format("300",2,",",".") it returns the value formatted but with two spaces before. Anyone knows how can i avoid this?Look at your other code around the functions. The number_format is not outputting any spaces... stut@giles:~$ php tmp.php '3.000,00' '300,00' Another example of where a simple test script would have moved you closer to a solution without involving the rest of us. -Stut