Float built-in type. Float built-in type. Constructs a default-initialized [float] set to [code]0.0[/code]. Constructs a [float] as a copy of the given [float]. Cast a [bool] value to a floating-point value, [code]float(true)[/code] will be equal to 1.0 and [code]float(false)[/code] will be equal to 0.0. Cast an [int] value to a floating-point value, [code]float(1)[/code] will be equal to [code]1.0[/code].