#38683 [Opn->Bgs]: Incorrect round()

From: Date: Fri, 01 Sep 2006 21:13:30 +0000
Subject: #38683 [Opn->Bgs]: Incorrect round()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-101625@lists.php.net to get a copy of this message
ID: 38683 Updated by: edink@php.net Reported By: whitephoenix at mail dot ru -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: WinXP. PHP 5.2.0 RC3 PHP Version: 5CVS-2006-09-01 (CVS) New Comment: . Previous Comments: ------------------------------------------------------------------------ [2006-09-01 21:12:28] edink@php.net You must be doing something wrong there: C:\php4build\installer\Files>php -v PHP 5.2.0RC3 (cli) (built: Sep 1 2006 16:29:07) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies C:\php4build\installer\Files>php -r "var_dump(round(0.123));" float(0) ------------------------------------------------------------------------ [2006-09-01 20:23:21] whitephoenix at mail dot ru Description: ------------ see code :) Reproduce code: --------------- echo round(0.123); Expected result: ---------------- 0 Actual result: -------------- 0.123 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38683&edit=1

« previous php.bugs (#101625) next »