#23590 [Bgs]: decimal part uncomplete for real type
| From: | adrien_comlan at yahoo dot fr | Date: | Mon, 12 May 2003 11:11:41 +0000 |
| Subject: | #23590 [Bgs]: decimal part uncomplete for real type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39480@lists.php.net to get a copy of this message | ||
ID: 23590
User updated by: adrien_comlan at yahoo dot fr
Reported By: adrien_comlan at yahoo dot fr
Status: Bogus
Bug Type: Sybase-ct (ctlib) related
Operating System: w2k
PHP Version: 4.3.2RC2
New Comment:
php 4.0.6 use to return 14.30 when 14.30 is in the table and not 14.3
as now
Previous Comments:
------------------------------------------------------------------------
[2003-05-12 06:05:59] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Nothing wrong here...
------------------------------------------------------------------------
[2003-05-12 05:44:35] adrien_comlan at yahoo dot fr
non significant zero are not return with sybase_fetch_
functions
ex : decimal(10,2)
14.3 is return instead of 14.30 in database
100 is return instead of 100.00 in database
db : ase 11.9.2
os : w2k
code
$ls_query = "select * from mytable";
$res = sybase_query($ls_query,$cnx);
while ($op_by_int = sybase_fetch_array($res))
{
while (list( $key, $value ) = each( $op_by_int ))
{
echo "<br>$key => $value";
}
}
thanks
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23590&edit=1