Bug #16511: wrong division: 18/21=0.857142857142861
| From: | sutter at ecology dot at | Date: | Tue, 09 Apr 2002 12:03:24 +0000 |
| Subject: | Bug #16511: wrong division: 18/21=0.857142857142861 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-4419@lists.php.net to get a copy of this message | ||
From: sutter@ecology.at
Operating system: linux 2.2.12, apache 1.3.23
PHP version: 4.1.2
PHP Bug Type: Variables related
Bug description: wrong division: 18/21=0.857142857142861
echo (18/21);
returns 0.857142857142861.
right is 0.86;
my configure command:
'./configure' '--prefix=/usr' '--with-config-file-path=/etc'
'--disable-debug' '--enable-pic' '--enable-inline-optimization'
'--with-apxs=/usr/sbin/apxs' '--disable-static' '--enable-shared'
'--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext'
'--with-gd' '--with-openssl'' -with-jpeg-dir=/usr'
'--with-png'
'--with-zlib' '--with-gdbm' '--with-kerberos'
'--with-imap-ssl'
'--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode'
'--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars'
'--enable-gd-imgstrttf' '--enable-yp' '--enable-ftp'
'--without-mysql'
'--with-xml' '--with-ttf' '--with-gnu-ld'
'--with-mysql=shared,/usr'
'--with-pgsql=shared,/usr' '--with-imap=shared,/usr'
'--with-ldap=shared'
--
Edit bug report at http://bugs.php.net/?id=16511&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16511&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16511&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16511&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16511&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16511&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16511&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16511&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16511&r=submittedtwice