Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122146 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 23728 invoked from network); 12 Jan 2024 00:52:49 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Jan 2024 00:52:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1705020805; bh=xbSCLAoaYke/IF7T27jRYrlltsEF72ZJ6krJQOnYbxo=; h=Date:To:From:Cc:Subject:In-Reply-To:References:From; b=k0VXuToUBO63PGwPdGe8SgKvyaBkw8yfDUANFuRZBQuiEbJchMok+qPl2Ch8Hsjjq V7+GRly1ZTmJM/seCGJF6pEvAAK8AOzxe1YPeON/Ticg7bFidy+q1Ba2DX7Cy0JHK6 +cc+0piBJsOxa9f++4cwgGrASRPkabF9sykG36UXn8SRw0Z3zQVDQpxSte7eSck8LH mZKJDoKVQrn46C8ouxs3Myk9G71NgJtencGDCeqcTSdPpklMR/TH3achMl1LzCt4vS v2PxdorNyBaG5C8YlG5vM9ayrfpD12R1wKZWPgg1zntA7x59IeI++LO5bU38lm64+3 08UNXVQUhA9uw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8CA6A180055 for ; Thu, 11 Jan 2024 16:53:23 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) (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 ; Thu, 11 Jan 2024 16:53:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail; t=1705020763; x=1705279963; bh=xbSCLAoaYke/IF7T27jRYrlltsEF72ZJ6krJQOnYbxo=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=mSvWpeQUM1btsjY9AvAFEf2yiPbu+1gPH5g535KHXCE5zWUQBoOyGVF+ZOpBjaP/i g7/ApOESmoNhxcNfHFIlPhBugb9GJq+r3caR8mfMhrOjkEXWWpplrGKxNaO2dy8ttM nLrp/bxZtz2UkyhkDuLynOfziEc12XiG51mkdmQwgSAUDbmPaA+/sY7UMrL8FboqNg o7/sM7i/0QZ+p56baiyI3PV85b5JwE/ZQsx1AVzUSXkqoNjgyfFWlldZ1fN3l0HnS1 ZXSNvN+rsMkB7Ej/n1x5Kr97ub/VJsSbgMm43zdVeyNn8K5Im5E1rM6IoVatD5BKtK MQWLMGnNga2nw== Date: Fri, 12 Jan 2024 00:52:18 +0000 To: tag Knife Cc: Jorg Sowa , PHP internals Message-ID: In-Reply-To: References: Feedback-ID: 96993444:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][Discussion] Raising zero to the power of negative number From: internals@gpb.moe ("Gina P. Banyard") On Thursday, 11 January 2024 at 21:47, tag Knife wrot= e: > On Thu, 11 Jan 2024 at 21:29, Jorg Sowa jorg.sowa@gmail.com wrote: >=20 > > Hello everyone! > >=20 > > I want to start the discussion on the RFC: Raising zero to the power of > > negative number > >=20 > > Link: https://wiki.php.net/rfc/raising_zero_to_power_of_negative_number > >=20 > > Kind regards, > > Jorg >=20 >=20 > IEEE 754 dictates that an infinity should be the expected output for all > these scenarios. IEEE 754 only deals with floating point numbers, and even then if you want = IEEE 754 behaviour for division you need to use fdiv() as of PHP 8.0 as any= division by 0 throws this error since https://wiki.php.net/rfc/engine_warn= ings#division_by_zero got accepted. I think this change makes sense but would rather have an improved wording/E= rror as proposed by Ben. Best regards, Gina P. Banyard