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

March 22, 2018
7:05 p.m.
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

2627
Age (days ago)
2632
Last active (days ago)
6 comments
5 participants
participants (5)
-
josef.pktd@gmail.com
-
Nathan Goldbaum
-
Nathaniel Smith
-
Olivier
-
Robert Kern