SyntaxFix
Write A Post
Hire A Developer
Questions
From this post: How to deal with floating point number precision in JavaScript?
You have a few options:
(Math.floor(y/x) * x).toFixed(2)