Eric V. Smith <[email protected]> added the comment:
Wouldn't float64's __round__ method be in complete control of this? For
python's float:
>>> x = 3.4
>>> type(x.__round__(1))
<class 'float'>
>>> type(x.__round__())
<class 'int'>
And Decimal:
>>> from decimal import Decimal
>>> x = Decimal('3.4')
>>> type(x.__round__(1))
<class 'decimal.Decimal'>
>>> type(x.__round__())
<class 'int'>
Of course, numpy may have good reasons for what they're doing.
----------
nosy: +eric.smith
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40598>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com