php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23590 decimal part uncomplete for real type
Submitted: 2003-05-12 05:44 UTC Modified: 2003-05-12 06:11 UTC
From: adrien_comlan at yahoo dot fr Assigned:
Status: Not a bug Package: Sybase-ct (ctlib) related
PHP Version: 4.3.2RC2 OS: w2k
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: adrien_comlan at yahoo dot fr
New email:
PHP Version: OS:

 

 [2003-05-12 05:44 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-12 06:05 UTC] 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 06:11 UTC] adrien_comlan at yahoo dot fr
php  4.0.6 use to return 14.30 when 14.30 is in the table and not 14.3 as now
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 01:01:28 2025 UTC