Minimum value of given dtype.
(self)
| 413 | |
| 414 | @property |
| 415 | def min(self): |
| 416 | """Minimum value of given dtype.""" |
| 417 | if self.kind == 'u': |
| 418 | return 0 |
| 419 | else: |
| 420 | try: |
| 421 | val = iinfo._min_vals[self.key] |
| 422 | except KeyError: |
| 423 | val = int(-(1 << (self.bits - 1))) |
| 424 | iinfo._min_vals[self.key] = val |
| 425 | return val |
| 426 | |
| 427 | @property |
| 428 | def max(self): |
no outgoing calls