Posts by Joe padilha • 1 point
3 posts
-
-1
votes2
answers72
viewsQ: Calculations with numbers after the comma and toFixed
I’m using toFixed in a little program I did to calculate a discount here in my work, but I can’t calculate if I use decimal numbers! If I put 150.50 for example, the program interprets and returns…
-
0
votes0
answers34
viewsQ: My code does not compute digits after the comma
I got help here on the site to be able to make my variables return me only 2 numbers after the comma, but the code never calculates number placed with comma, as 140,45 for example. My code only…
-
0
votes2
answers44
viewsQ: Help to round value returned from function
Hello, I would like the return of the variables to be only 2 decimal places, how do I do this? <meta charset="UTF-8"> <h1>DESCONTO ETANOL</h1> <script> function pulaLinha() {…