[Numpy-discussion] round(numpy.float64(0.0)) is a numpy.float64

Olivier oc-spam66 at laposte.net
Thu Mar 22 15:05:57 EDT 2018


Hello,


Is it normal, expected and desired that :


      round(numpy.float64(0.0)) is a numpy.float64


while

      round(numpy.float(0.0)) is an integer?


I find it disturbing and misleading. What do you think? Has it already been 
discussed somewhere else?


Best regards,


Olivier



More information about the NumPy-Discussion mailing list