javascript cast string tom number code example
Example: string to int javascript
var text = '3.14someRandomStuff';
var pointNum = parseFloat(text);
// returns 3.14
var text = '3.14someRandomStuff';
var pointNum = parseFloat(text);
// returns 3.14