Syntax
- float[] floatArray()
- float[] floatArray(values)
Parameters
- values—((float[], string[], bool[])Values to convert.
Returns
If values is not given, an empty float array is returned.
If values is given, a float array is returned that contains the elements of values converted to the corresponding float values.
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]