Divide by zero

I think you’re saying that any attempted conversation of INF or NAN to integer should raise an exception, and I agree. There is simply no non-arbitrary way to represent those values as integer, and any code that is doing that silently is just masking a bug.

2 Likes

Yes, unless you have some pragma to disable such check and know what you’re doing.

2 Likes