copapy.to_float#

copapy.to_float(x)#

Convert a number, a copapy value or the elements of a vector, tensor or array to float.

Overloads:
Parameters:

x (Any) – Number, copapy value, vector, tensor or array

Returns:

x as float