This method converts the string into a floating point value.
float = string:ToFloat()
float
local str = "3.14" local floatValue = str:ToFloat() print(floatValue) -- Output: 3.14