float function
Syntax
float float(value)
Parameters
- value (float, bool, string)
Value to convert.
Returns
Float value calculated from value.
Description
This function converts value to the corresponding float value.
Related
- bool function
- str function
- floatArray function
- boolArray function
- stringArray function
Examples
float("0.5")
# result = 0.5
float(true)
# result = 1
float("001.5")
# result = 1.5
float(1/0)
# result = inf
Copyright ©2008-2025 Esri R&D Center Zurich. All rights reserved.