Re: [Numpy-discussion] floor with dtype
![](https://secure.gravatar.com/avatar/867887664d2f096e1dfa04d6e9016e48.jpg?s=120&d=mm&r=g)
Sept. 25, 2017
8:36 p.m.
On 2017-09-25 10:59, Renato Fabbri wrote:
+1 for specifying a dtype in np.floor and np.ceil. Now it is pretty odd that np.floor and np.ceil results in an integer, except for that it doesn't. it returns a float with all zeros as the decimals. It would be very useful to be able to specify the dtype at 'int'. I frequently use floor or ceil to determine the indices of an array, but now need to convert to integers in addition to floor and ceil.
2699
Age (days ago)
2701
Last active (days ago)
1 comments
2 participants
participants (2)
-
Mark Bakker
-
Renato Fabbri