Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97422 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75991 invoked from network); 15 Dec 2016 14:53:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Dec 2016 14:53:44 -0000 Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:37324] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B6/A8-21185-57EA2585 for ; Thu, 15 Dec 2016 09:53:42 -0500 Received: by h1123647.serverkompetenz.net (Postfix, from userid 1006) id 59F0C784A91; Thu, 15 Dec 2016 15:53:38 +0100 (CET) Received: from w530phpdev (p54A7755A.dip0.t-ipconnect.de [84.167.117.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by h1123647.serverkompetenz.net (Postfix) with ESMTPSA id 1BEC3784A8F for ; Thu, 15 Dec 2016 15:53:36 +0100 (CET) To: "'PHP internals'" Date: Thu, 15 Dec 2016 15:53:32 +0100 Message-ID: <015401d256e3$036a2aa0$0a3e7fe0$@belski.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdJW4Bf2c67vOn09RGaKFQAz3zHCCA== Content-Language: en-us Subject: Extending round() to handle fraction part up/down From: anatol.php@belski.net ("Anatol Belski") Hi, There's a PR https://github.com/php/php-src/pull/1658 about the topic. The implementation adds the ceil()/floor() equivalent for the fraction part of the float to the round() function. The PR sits there for long, the change itself looks useful and self-contained, the current behaviors are not changed. I would like to handle it on my next time frame and put it into master, if there is no objection. If someone is interested to check and give a comment, please do. Thanks Anatol