This code doesn\'t work:
var number = $(this).find(\'.number\').text(); var current = 600; if (current > number){ // do something }
If anyone came here trying to do this with a decimal like me:
myFloat = parseFloat(myString);
If you just need an Int, that's well covered in the other answers.