Convert String From Serial Data to Numerical Value

What is the syntax to convert to floating?

int n = readString.toInt();