float function

Syntax

float float(value)

Parameters

Returns

Float value calculated from value.

Description

This function converts value to the corresponding float value.

Related

Examples

float("0.5")
# result = 0.5

float(true)
# result = 1	

float("001.5")
# result = 1.5	

float(1/0)
# result = inf	

Copyright ©2008-2023 Esri R&D Center Zurich. All rights reserved.