Syntax
float(argument)
Description
The float() function returns the floating point number converted from a string, and integer. A boolean will always return as 1.00′, and the orginal number is returned if it’s already floating point. All other data types will error.
Example
a=1 b=float(a) printf("b=%f\n", b) b=1.000000