I am using decimal numbers with 2 precision point (ie. 1.38). I want to round the number according to that following:
1) If the second precision point is larger or equal to 8 (1.38 or 1.39), then round it to 1.4, else don’t change.
How can I do that in Javascript. toFixed doesn’t work well because it rounds 1.75 to 1.8, which is not what I want.
Heres a rather clunky way of doing it: