Is there a JavaScript function that converts a String to a float or int?
Printable View
Is there a JavaScript function that converts a String to a float or int?
num = parseInt('12')
num = parseFloat('12.12')
...should do the trick :)
thanks, exactly what I needed!