Re: [RFC][Discussion] Raising zero to the power of negative number

From: Date: Thu, 11 Jan 2024 22:25:05 +0000
Subject: Re: [RFC][Discussion] Raising zero to the power of negative number
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-122145@lists.php.net to get a copy of this message
On 1/11/24 15:47, tag Knife wrote:
On Thu, 11 Jan 2024 at 21:29, Jorg Sowa <jorg.sowa@gmail.com> wrote:
Hello everyone! I want to start the discussion on the RFC: Raising zero to the power of negative number Link: https://wiki.php.net/rfc/raising_zero_to_power_of_negative_number Kind regards, Jorg
IEEE 754 dictates that an infinity should be the expected output for all these scenarios.
If I'm reading the text of IEEE 754-2019 correctly, it means that the division by zero error should occur when an operation on finite operands gives an exact infinite result. "The divideByZero exception shall be signaled if and only if an exact infinite result is defined for an operation on finite operands." Cheers, Ben

Attachment: [application/pgp-signature] OpenPGP digital signature OpenPGP_signature.asc
« previous php.internals (#122145) next »