SyntaxFix
Write A Post
Hire A Developer
Questions
Math.round( num * 10) / 10 doesn't work.
Math.round( num * 10) / 10
For example, 1455581777.8-145558160.4 gives you 1310023617.3999999.
1455581777.8-145558160.4
1310023617.3999999
So only use num.toFixed(1)
num.toFixed(1)