Python

Python_N-003. Data Type in array

X25WLK 2025. 1. 19. 02:57

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)

 

반응형