-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Learning NumPy Array
By :

Python has an integer type, a float type, and a complex type; however, this is not enough for scientific computing. In practice, we need even more data types with varying precision, and therefore, different memory size of the type. For this reason, NumPy has a lot more data types. The majority of NumPy numerical types end with a number. This number indicates the number of bits associated with the type. The following table (adapted from the NumPy user guide) gives an overview of NumPy numerical types:
Type |
Description |
---|---|
|
This stores boolean (True or False) as a bit |
|
This is a platform integer (normally either |
|
This is an integer ranging from-128 to 127 |
|
This is an integer ranging from -32768 to 32767 |
|
This is an integer ranging from -2 ** 31 to 2 ** 31 -1 |
|
This is an integer ranging from -2 ** 63 to 2 ** 63 -1 |
|
This is an unsigned integer ranging from 0 to 255 |
|
This is an unsigned integer... |
Change the font size
Change margin width
Change background colour