본문 바로가기

Python

Python_N-003. Data Type in array

N-003_Data_Type_in_array.py
0.00MB

Data Type Description
bool_ Boolean (True or False) stored as a byte
int_ Default integer type (similar to Python's int)
intc Identical to C's int
intp Integer type used for indexing (similar to C's ssize_t)
int8 Byte (-128 to 127)
int16 Integer (-32768 to 32767)
int32 Integer (-2147483648 to 2147483647)
int64 Integer (-9223372036854775808 to 9223372036854775807)
float_ Shorthand for float64
float16 Half precision float: sign bit, 5 bits exponent, 10 bits mantissa
float32 Single precision float: sign bit, 8 bits exponent, 23 bits mantissa
float64 Double precision float: sign bit, 11 bits exponent, 52 bits mantissa
complex_ Shorthand for complex128
complex64 Complex number represented by two 32-bit floats (real and imaginary components)
complex128 Complex number represented by two 64-bit floats (real and imaginary components)

 

반응형

'Python' 카테고리의 다른 글

Python_N-005. 10 basic attributes in array (2)  (0) 2025.01.19
Python_N-004. 10 basic attributes in array  (0) 2025.01.19
Python_N-002. random module  (0) 2025.01.18
Python_N-001. basic commend in Numpy  (0) 2025.01.18
Python_G-010. class vs instance  (0) 2025.01.17