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

From: Date: Fri, 12 Jan 2024 23:25:02 +0000
Subject: Re: [RFC][Discussion] Raising zero to the power of negative number
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-122148@lists.php.net to get a copy of this message
Thank you for the suggestions. I agree that error message should be more meaningful. I changed it. The main driver of this change is to match the division by zero behavior for both operators which can operate on both integers and floats. Would it make sense to create a function fpow similarly to fdiv for the correct IEEE 754 logic? Kind regards, Jorg

« previous php.internals (#122148) next »