How to limit the decimal place to 4 in javascript with this type of values? the e is the exponent since I am using power of ten values. toFixed() doesn\'t seem
toFixed()
You can use Math.round();
Math.round();
Using Math.round(x) will round up or down to the nearest integer (using the classic .5 rule).
Math.round(x)
You can pass in your own criteria and have it do decimal places. The link below has examples for 1, 2, and 3 decimal places.
Here is the link