Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<script type="text/javascript">
function blah(str) {
return parseFloat(/[,]/g.replace(""));
}
</script>
<input type="text" id="txt">
<input type="button" value="show number" onclick="alert(blah(document.getElementById('txt').value))">
var s = "1,256.50";
// strip commas
s = s.replace(/,/g, "");
// get numeric value
var n = parseFloat( s );