Formulas: More examples
Significant figures
"The significant figures of a number are digits that carry meaning contributing to its measurement resolution." (Reference: https://en.wikipedia.org/wiki/Significant_figures).
The Formulas question has no built-in function to display numbers with a given number of significant figures. However, it is easy to work out this function as the following variable assignment which works with any real number:
xr=x==0?x:round(x*pow(10,nsf-1-floor(log10(abs(x)))),0)*pow(10,-nsf+1+floor(log10(abs(x))));
where x is the number to be rounded, nsf the number of significant digits to keep and xr the resulting rounded value.
This example deals with the display of the correct answers with different numbers of significant figures.
The Formulas question should look like this:
Play it Login info (Open in new tab: Ctrl+Shift+Click)
This example is a significant figures drill.
The Formulas question should look like this:
Play it Login info (Open in new tab: Ctrl+Shift+Click)