a[0] = 1.9 # <-- float is truncated to integer. > ... b = a.astype(int) # <-- truncates to integer. > ... Comparison on using float32 instead of float64 :.
確定! 回上一頁