Let’s say we need to present a number on a web page so that it is always a floating point number with two decimal places. This is for cases where absolute precision is not needed but we want to always present a number output in a uniform way. Here is an example of how to … Continue reading JavaScript: How to format a number to two decimal places