how to get double js code example
Example 1: javascript decimal to string
<script language="JavaScript" type="text/javascript">
var a = 3.3445;
var c = a.toString();
alert(c);
</script>
Example 2: javascript string to a decimal
<script language="JavaScript" type="text/javascript">
var a = "3.3445";
var c = parseFloat(a);
alert(c);
</script>