PHP+Firebird numeric format problem
am 30.11.2009 12:37:38 von helderfelipe
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 ?
--
View this message in context: http://old.nabble.com/PHP%2BFirebird-numeric-format-problem- tp26573276p26573276.html
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP+Firebird numeric format problem
am 30.11.2009 16:15:03 von Philip Thompson
On Nov 30, 2009, at 5:37 AM, helderfelipe wrote:
> I have a query who is returning a NUMERIC(18,8) column.
>=20
> In the IBExpert, te resultset is:
>=20
> 30,91271111
> 836,58000000
>=20
> But PHP returns in a strange format:
>=20
> 3.91271111
> 83.658000000
>=20
> 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.? =3DD If you need to =
reformat the output, consider....
http://php.net/number_format
Hope that helps.
~Philip=
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php