Question
I want to round a number to the lowest number based on its 3rd decimal.
For an example
If the number is 6.1064 I want to output 6.10 rather than 6.11
and if the number is 5.9407 I want to output 5.94
Current situation
I currently use Math.round but it rounds 6.1064 as 6.11 which is not what Im after.
How do I do this is Javascript?
1 Answer