преобразует строки в floats с parseFloat(string) или integers с parseInt(string)
floats
parseFloat(string)
integers
parseInt(string)