Bug #16511 Updated: wrong division: 18/21=0.857142857142861

From: Date: Tue, 09 Apr 2002 13:58:29 +0000
Subject: Bug #16511 Updated: wrong division: 18/21=0.857142857142861
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4436@lists.php.net to get a copy of this message
ID: 16511 Updated by: sutter@ecology.at Reported By: sutter@ecology.at Status: Bogus Bug Type: Variables related Operating System: linux 2.2.12, apache 1.3.23 PHP Version: 4.1.2 New Comment: sorry, my calculator was wrong; I tested it with two others; Previous Comments: ------------------------------------------------------------------------ [2002-04-09 09:57:18] hholzgra@php.net as the result is 1 - 1/7 it is periodic: ______ 0.857142 18 : 21 = 0,857142... 0 -- #1 180 168 (8x21) --- #2 120 105 (5x21) --- #3 150 147 (7x21) --- #4 30 21 (1x21) -- #5 90 84 (4x21) -- #6 60 42 (2x21) -- 18 (continue at #1) ------------------------------------------------------------------------ [2002-04-09 09:48:25] imajes@php.net alright, it's not exactly 0.857142857142861, but it's closer than 0.86. ------------------------------------------------------------------------ [2002-04-09 09:44:52] imajes@php.net dudes, 18/21 is EXACTLY 0.857142857142861 EOF. ------------------------------------------------------------------------ [2002-04-09 09:43:54] imajes@php.net which planet do you come from? ------------------------------------------------------------------------ [2002-04-09 09:43:45] derick@php.net 0.86 * 21 = 18.06 I suggest you buy another calculater. Derick ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16511 -- Edit this bug report at http://bugs.php.net/?id=16511&edit=1

« previous php.bugs (#4436) next »