tofixed in js in such a way that at 5 it will downshift the number code example
Example: tofixed
//round number to 2 digits
var num = 5.56789;
var n = num.toFixed(2);
//round number to 2 digits
var num = 5.56789;
var n = num.toFixed(2);