I have small issue with the JavaScript function toFixed(2).
If I round this decimal number 45.24859, I get 45.25 using this function.
But my problem is, if I round 10 (it has no decimal part), the function will return a decimal number 10.00.
How can I fix this issue?
My problem is, if enter a number without a decimal part, the function should return a non decimal number.