Re: PHP+Firebird numeric format problem
| From: | Philip Thompson | Date: | Mon, 30 Nov 2009 15:15:03 +0000 |
| Subject: | Re: PHP+Firebird numeric format problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-300153@lists.php.net to get a copy of this message | ||
On Nov 30, 2009, at 5:37 AM, helderfelipe wrote:
> I have a query who is returning a NUMERIC(18,8) column.
>
> In the IBExpert, te resultset is:
>
> 30,91271111
> 836,58000000
>
> But PHP returns in a strange format:
>
> 3.91271111
> 83.658000000
>
> Somebody help ?
That "strange format" you're referring to looks like US_EN locale (or similar).
I'm guessing you're not from the U.S.? =D If you need to reformat the output, consider....
http://php.net/number_format
Hope that helps.
~Philip