Skip to content

Instantly share code, notes, and snippets.

@rmehner
Created March 14, 2014 14:51
Show Gist options
  • Select an option

  • Save rmehner/9549167 to your computer and use it in GitHub Desktop.

Select an option

Save rmehner/9549167 to your computer and use it in GitHub Desktop.
function cleanNumberValue(value) {
s = value.replace("'", '', 'g').replace(',', '.');
return +(parseFloat(parseInt(s, 10)) * 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment