dpnp.finfo

dpnp.finfo(dtype)[source]

Returns machine limits for floating-point data types.

For full documentation refer to numpy.finfo.

Parameters:

dtype (dtype, dpnp_array) -- Floating-point dtype or an array with floating point data type. If complex, the information is about its component data type.

Returns:

out -- An object have the following attributes

  • bits: int

    number of bits occupied by dtype.

  • dtype: dtype

    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.

  • epsneg: float

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

  • max: float

    largest representable real-valued number.

  • min: float

    smallest representable real-valued number.

  • precision: float

    the approximate number of decimal digits to which this kind of floating point type is precise.

  • resolution: float

    the approximate decimal resolution of this type.

  • tiny: float

    an alias for smallest_normal

  • smallest_normal: float

    smallest positive real-valued floating-point number with full precision.

Return type:

finfo_object