SyntaxFix
Write A Post
Hire A Developer
Questions
Once you read what What Every Computer Scientist Should Know About Floating-Point Arithmetic you could use the .toFixed() function:
.toFixed()
var result = parseFloat('2.3') + parseFloat('2.4'); alert(result.toFixed(2));?