floatArray function
Syntax
float[] floatArray()
float[] floatArray(values)
Parameters
- values (float[], bool[], string[])
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
- float function
- bool function
- str function
- boolArray function
- stringArray function
- array initialization function
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]
Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.