numpy.finfo

class numpy.finfo

Machine limits for floating point types.

Parameters :

dtype : float, dtype, or instance

Kind of floating point data-type about which to get information.

See also

MachAr
The implementation of the tests that produce this information.
iinfo
The equivalent for integer data types.

Notes

For developers of NumPy: do not instantiate this at the module level. The initial calculation of these parameters is expensive and negatively impacts import times. These objects are cached, so calling finfo() repeatedly inside your functions is not a problem.

Attributes

Previous topic

numpy.format_parser

Next topic

numpy.iinfo

This Page