Posts by leandrorcom • 11 points
1 post
-
1
votes2
answers1168
viewsA: Appear two decimal places
Converting an integer to 2 decimal places. <script> var x = '146870'; function format(num){ return (num / 100).toFixed(2); } alert(format(x)); </script> Exit will be 1468.70…