Posts by Vinícius Soares • 31 points
1 post
-
3
votes2
answers56
viewsQ: Problem with toFixed() Javascript method
The method toFixed(2) leaves the number with two decimal places, but when the number is finished in 5 it rounds up and I’d like it to round down. Is there any way? Example: let num = 10.125 num =…
javascriptasked Vinícius Soares 31