On Python3, round with one argument should return an integer type. #5700
The discussion at #6248 suggested that one issue is that floats have a larger range than (fixed-size) ints. I this it may be reasonable to raise an overflow warning/error (depending on the errstate) and set the value to either MAX_INT or zero, just like integer division by zero does.
In fact, now that I think of it, it may be worth having an extra flag in the errstate about integer overflows: I'd guess one will usually want to ignore floating point overflows (because infs are "not that bad") while not losing track of integer overflows (because they actually give wrong results). Thoughts?
No thoughts here for more than a year, so I'm going to write something, although I use NumPy rather marginally.
My first point is that this issue is a duplicate of #3511.
Now to the desired
(1e309 overflows to infinity)
As demonstrated, even the built-in
For the sake of completeness, I'm reminding that the behavior is quite different if the second argument is given (and not