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

2024-03-17 Thread Jorg Sowa
Thank you Marc for your opinion. It makes sense to me that we should have the possibility to mimic the IEEE-754 standard, thus we should have `fpow` function as well. I have updated the RFC and would like to start the voting if there are no new comments. Kind regards, Jorg Sowa

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

2024-02-25 Thread Marc Bennewitz
Hi Jorg, On 13.01.24 00:25, Jorg Sowa wrote: 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 mak

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

2024-02-08 Thread Jorg Sowa
Hello everyone, If there is no other feedback I would like to start voting in the next few days. Kind regards, Jorg

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

2024-01-12 Thread Jorg Sowa
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

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

2024-01-11 Thread Gina P. Banyard
On Thursday, 11 January 2024 at 21:47, tag Knife wrote: > On Thu, 11 Jan 2024 at 21:29, Jorg Sowa jorg.s...@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

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

2024-01-11 Thread Ben Ramsey
On 1/11/24 15:47, tag Knife wrote: On Thu, 11 Jan 2024 at 21:29, Jorg Sowa 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

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

2024-01-11 Thread tag Knife
On Thu, 11 Jan 2024 at 21:29, Jorg Sowa 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 infinit

[PHP-DEV] [RFC][Discussion] Raising zero to the power of negative number

2024-01-11 Thread Jorg Sowa
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