ScientificNotationThreshold

ScientificNotationThreshold

is an option for NumberForm and related functions that specifies the threshold between the use of decimal notation and scientific notation to represent real numbers.

Details

  • The setting ScientificNotationThreshold{min,max} for integer values min<max indicates that a real number x will be represented in decimal form in base b if bmin|x|<bmax, or in scientific form otherwise.

Examples

open allclose all

Basic Examples  (2)

This number is shown by default in scientific notation:

Increase the upper threshold to 109 to show it still in decimal form:

This number is shown by default in scientific notation:

Decrease the lower threshold to 10-8 to show it still in decimal form:

Scope  (2)

Use ScientificNotationThreshold with NumberForm:

ScientificForm:

DecimalForm:

AccountingForm:

EngineeringForm:

PaddedForm:

For any base b, positive real numbers larger than b-5 and smaller than or equal to b6 are typeset in decimal form:

These are pairs {b6-1,b6} for bases b from 2 to 17, showing the threshold at exponent 6:

Raising the threshold to exponent 7 makes powers b6 be displayed in decimal form, for all bases:

Properties & Relations  (1)

The functions related to NumberForm have different defaults for ScientificNotationThreshold:

Introduced in 2017
 (11.2)