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()
Try this method: value.toPrecision(1 + 4) for 4 decimal digits.