screenshot of Godot's docs saying the following: float to_float() const Converts the string representing a decimal number into a float. This method stops on the first non-number character, except the first decimal point (.) and the exponent letter (e). See also is_valid_float(). examples include... converting a string with 12.35 into the number 12.35 converting a string with 1.2.3 into the number 1.2 converting a string with 12xy3 into the number 12.0 converting a string with 1e3 into 1000.0 converting a string with Hello [exclamation point] into 0.0
https://scaliezone.files.fedi.monster/media_attachments/files/113/066/055/050/327/765/original/798864c5182ea598.png