Text of numpy.org › doc › stable › reference › generated › numpy.dtype.num.html as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

numpy.dtype.num — NumPy v2.5 Manual

Skip to main content GitHub numpy.dtype.num # attribute dtype. num # A unique number for each of the 21 different built-in types. These are roughly ordered from least-to-most precision. Examples >>> import numpy as np >>> dt = np . dtype ( str ) >>> dt . num 19 >>> dt = np . dtype ( float ) >>> dt . num 12 On this page