Rounding Numbers in Exponential Notation

How do you round numbers close to zero with exponential notation?

Here is the code:

Here is a link to the actual slide:

The problem here is that numericValue is interpreting the ‘e’ as the constant (2.71828…) rather than in standard form, which is what’s causing the strange value.

I think simpleFunction handles this better than numericValue, so try setting up a function to round the value to 4dp and using evaluateAt on that.

I see. Round the value of the “answer” and then put that into the quadratic expression, and round that answer. Perfect ! So simple…

I was putting the long answer into the expression, and then trying to display that rounded answer. .