php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15314 php can't handle values of type double correcty
Submitted: 2002-01-31 08:43 UTC Modified: 2002-04-13 14:46 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: tchemaly at ing dot sun dot ac dot za Assigned:
Status: Closed Package: InterBase related
PHP Version: 4.1.1 OS: win32
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
33 - 9 = ?
Subscribe to this entry?

 
 [2002-01-31 08:43 UTC] tchemaly at ing dot sun dot ac dot za
PHP interbase can't seem to handle fieldtypes declared as type numeric(x,y). It always returns any value stored in these fields as xyz.y Thus if the value in the interbase database is 4.6 and the fieldtype was declared as numeric(15,4) php returns 4.4 instead of 4.6. It seems that it is appending the precision value instead of the part after the decimal separator.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-13 14:46 UTC] daniela@php.net
This bug it's been fixed.
Please try the php-4.2.0RC3 from http://www.php.net/~derick/ 

If you are still able to reproduce the bug, please change the PHP
version on this bug report to the version you tested and change 
the status back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 19:01:33 2024 UTC