finfo¶
- finfo(type: dtype | array, /) finfo_object ¶
Machine limits for floating-point data types.
- Parameters:
type (Union[dtype, array]) –
the kind of floating-point data-type about which to get information. If complex, the information is about its component data type.
Note
Complex floating-point data types are specified to always use the same precision for both its real and imaginary components, so the information should be true for either component.
- Returns:
out (finfo object) – an object having the following attributes:
bits: int
number of bits occupied by the real-valued floating-point data type.
eps: float
difference between 1.0 and the next smallest representable real-valued floating-point number larger than 1.0 according to the IEEE-754 standard.
max: float
largest representable real-valued number.
min: float
smallest representable real-valued number.
smallest_normal: float
smallest positive real-valued floating-point number with full precision.
dtype: dtype
real-valued floating-point data type.
New in version 2022.12.
Notes
Changed in version 2022.12: Added complex data type support.