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.

Returns:

out (finfo object) – an object having the followng attributes:

  • bits: int

    number of bits occupied by the floating-point data type.

  • eps: float

    difference between 1.0 and the next smallest representable floating-point number larger than 1.0 according to the IEEE-754 standard.

  • max: float

    largest representable number.

  • min: float

    smallest representable number.

  • smallest_normal: float

    smallest positive floating-point number with full precision.