I am facing the issue while round numbers in 2 decimal points using javascript function toFixed
It's working for all the values except some cases
For example :
Value is : 3.675
Then it should be 3.68
I have tried it as below
var ans = Number(DiscountValue).toFixed(2);
I have even tried with the following code
var ans = parseFloat(DiscountValue).toFixed(2);
But its returning 3.67
Anyone face this issue before
Plz guide how we can sort this !