Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124228 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 85D2C1A009C for ; Fri, 5 Jul 2024 12:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720182608; bh=RjxWrOQ84yq+7H7rU0mcta2LISVbg4Gc96Q/mi5//2Y=; h=Date:Subject:From:To:References:In-Reply-To:From; b=bd4a7afBNAB0hmUnvTbUPz0rueXQSAX6935BaEDVwm+d0b7B36u6snJRvzVrpg9Mm 3KebkaVHCRP1ywwwXXKGFUUQ4b3uw3dZZQi7MHnLGB6tR6RsUlCiU/gtmAJfLVRPof iR+b+LkE29IMXZD5zbeItQvlnXq4Onyji4zmObQ1xmWkj5f8n6NjdW5oWQLGAMLPKS Ub03F1G/owijP02/ee4hKwM10qHp79jJR7xC86LMGnUaPe1mwetptxBOfdQEaGFEDs 5qZs8fzxhES5dhu9J+yya1k0zliNwwp9DSVcCD0dDgB2E6VVlGQBbx9MnUYOXtwv6t AglQiQcoi7bHA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4C4EE180086 for ; Fri, 5 Jul 2024 12:30:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 5 Jul 2024 12:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1720182521; bh=f5Lx+f2ykg/zr1S+4zeWflOS2oePr2nlh5noVUeAj7g=; h=Message-ID:Date:MIME-Version:Subject:From:To:References: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=NjVavZ6pTkrHwEXlt5xle9ygkSnb/EMUAou6DUclvXp9kcEKVnwj499O9734q8cBC 2dcj4DqHyxPKiDmVZQCYiAu3A/tuBrsI1J2hzjL2HBks7UYXe17U0LpV9AjrDpOmIv SHJl36zHmw+pA27VgmROYYqBJ/gPZM6wf9L4P/50j53FX614Q6UedZxrApdFIpPD04 5U7zS5qjx9gVXhMt+aGNK/PhEWDCG3pKQcD8vi8VfJ5t6DDiC+tsA0G4WjZjqMF/oi DQ2n13jEo38STfoZpzWB5TuYa8E+tlI4Bb4NivwAf7hSdSsMeMQVU7I3FDZbal50Fb nxSMMV2YWWacw== Message-ID: <99fbd494-0ceb-4d2c-a733-6a42d1b3b3ae@bastelstu.be> Date: Fri, 5 Jul 2024 14:28:39 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Subject: Re: [PHP-DEV] [VOTE] Correctly name the rounding mode and make it an Enum To: PHP internals , Saki Takamachi References: <15beb37b-df78-46c2-a84b-878f3ff27bd8@bastelstu.be> Content-Language: en-US In-Reply-To: <15beb37b-df78-46c2-a84b-878f3ff27bd8@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 7/3/24 08:32, Tim Düsterhus wrote: > RFC Text: > https://wiki.php.net/rfc/correctly_name_the_rounding_mode_and_make_it_an_enum > Discussion Thread: https://externals.io/message/123472 I have just added a link to the implementation of the enum and the changes to `round()` to the RFC. Saki will handle the changes to ext/bcmath. You can find my PR at: https://github.com/php/php-src/pull/14833 I have also fixed an error in the explanation of the 'PositiveInfinity' rounding mode [1]. It previously read: > Round to the largest integer that is greater or equal. but it should read: > Round to the ***smallest*** integer that is greater or equal. I apologize for the confusion this may have caused. Best regards Tim Düsterhus [1] https://wiki.php.net/rfc/correctly_name_the_rounding_mode_and_make_it_an_enum?do=diff&rev2%5B0%5D=1720182318&rev2%5B1%5D=1720182387&difftype=sidebyside