I am using the Math.exp function with the .toFixed() method, but results that are expressed in scientific notation seem to ignore the method. Correct me if I am wrong, but I understand that .toPrecision() handles scientific notation better than does .toFixed().
Is there a way to invoke the .toPrecision() method only if a result is expressed in scientific notation?