floatArray function

float[] floatArray()
float[] floatArray(values)

values float[]bool[]string[] Values to convert.

Returns an empty float array if values is not given. Otherwise, returns the values converted element-wise to float.

Related

Examples

floatArray([1, 0, 1.777, 20])
# result = [1,0,1.777,20]

floatArray(["1.5", "-2", "0", "nixda", "5+6" ])
# result = [1.5,-2,0,nan,5]

floatArray([true, false, true])
# result = [1,0,1]