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
make sense to create a function `fpow` similarly to `fdiv` for the correct
IEEE 754 logic?

As of your note of consistent behavior here, in your RFC I don't see any note about operating on float - It's all about int. It would be good to explicitly describe both int and float behavior in your RFC.

About `fpow` - I personally never felled the need to use `fdiv` but as `fdiv` was explicitly introduced to expose IEEE-754 semantics I think it totally makes sense to add `fpow` as well.

Greetings,
Marc

Kind regards,
Jorg

Attachment: OpenPGP_0x3936ABF753BC88CE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to