Skip to content

Instantly share code, notes, and snippets.

@schickm
Created April 24, 2014 19:40
Show Gist options
  • Save schickm/11266970 to your computer and use it in GitHub Desktop.
Save schickm/11266970 to your computer and use it in GitHub Desktop.
Javascript: parseFloat
var total = 4 + parseFloat("3.5");
alert(total); // shows "7.5"!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment