Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89948 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49898 invoked from network); 1 Jan 2016 11:33:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jan 2016 11:33:45 -0000 Authentication-Results: pb1.pair.com header.from=mark@lange.demon.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mark@lange.demon.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lange.demon.co.uk from 91.221.168.45 cause and error) X-PHP-List-Original-Sender: mark@lange.demon.co.uk X-Host-Fingerprint: 91.221.168.45 mdfmta004.mxout.tbr.inty.net Received: from [91.221.168.45] ([91.221.168.45:59183] helo=smtp.demon.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/31-51216-71466865 for ; Fri, 01 Jan 2016 06:33:43 -0500 Received: from mdfmta004.tbr.inty.net (unknown [127.0.0.1]) by mdfmta004.tbr.inty.net (Postfix) with ESMTP id 2895AA0C081 for ; Fri, 1 Jan 2016 11:32:51 +0000 (GMT) Received: from mdfmta004.tbr.inty.net (unknown [127.0.0.1]) by mdfmta004.tbr.inty.net (Postfix) with ESMTP id 0607CA0C080 for ; Fri, 1 Jan 2016 11:32:51 +0000 (GMT) Received: from [192.168.1.64] (unknown [86.135.237.93]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mdfmta004.tbr.inty.net (Postfix) with ESMTP for ; Fri, 1 Jan 2016 11:32:50 +0000 (GMT) To: internals@lists.php.net Message-ID: <5686641B.5020209@lange.demon.co.uk> Date: Fri, 1 Jan 2016 11:33:47 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-MDF-HostID: 9 Subject: Additional Rounding modes for the round() function From: mark@lange.demon.co.uk (Mark Baker) I'd like to suggest a couple of additional options for the round() function, two new flags for PHP_ROUND_UP and PHP_ROUND_DOWN; which are similar to the existing ceil() and floor() functions, but allow a precision argument as well. The PR is at https://github.com/php/php-src/pull/1658 -- Mark Baker _________ |. \ \-3 |_J_/ PHP | || | __ | || |m| |m| I LOVE PHP