0

How to use different data types for int?

The default int in python is int64, I want to use int8, int16, int32. How can I?

28th May 2020, 4:27 PM
Tricker
1 Odpowiedź
+ 2
import numpy as np Then use np.int16(), np.int32(), np.int64(), Put the number inside the parameters that you want to convert.
28th May 2020, 4:40 PM
Valmob101
Valmob101 - avatar