FunctionsfloatVersion: v4.23On this pagefloatCasts an expression to a float.float(x:any) -> floatDescriptionThe float function converts the given value x to a floating-point value.ExamplesCast an integer to a floatfrom {x: float(42)}{x: 42.0}Cast a string to a floatfrom {x: float("4.2")}{x: 4.2}See Alsoint, uint, time, str, ip