I wonder which format floats are in NumPy array by default.
(or do they even get converted when declaring a np.array? if so how about python lists?)
e.g. float16
, float32
, or float64
?
float64
. You can check it like
>>> np.array([1, 2]).dtype
dtype('int64')
>>> np.array([1., 2]).dtype
dtype('float64')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With