float in javascript with decimal 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: get decimals from float javascript
js> 2.3 % 1
0.2999999999999998