__float__

array.__float__() float

Converts a zero-dimensional floating-point array to a Python float object.

Parameters:

self (array) – zero-dimensional array instance. Must have a floating-point data type.

Returns:

out (float) – a Python float object representing the single element of the array instance.