Bug #15314: php can't handle values of type double correcty
| From: | tchemaly at ing dot sun dot ac dot za | Date: | Thu, 31 Jan 2002 13:43:52 +0000 |
| Subject: | Bug #15314: php can't handle values of type double correcty | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-78697@lists.php.net to get a copy of this message | ||
From: tchemaly@ing.sun.ac.za
Operating system: win32
PHP version: 4.1.1
PHP Bug Type: InterBase related
Bug description: php can't handle values of type double correcty
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.
--
Edit bug report at: http://bugs.php.net/?id=15314&edit=1