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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC