javascript string to float with same decimal code example
Example 1: javascript convert int to float with 2 decimal places
float_num.toFixed(2);
Example 2: javascript decimal to string
<script language="JavaScript" type="text/javascript">
var a = 3.3445;
var c = a.toString();
alert(c);
</script>