This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ExponentFunction

ExponentFunction
is an option for NumberForm and related functions that determines the exponent to use in printing approximate real numbers.
  • Functions like NumberForm first find the exponent that would make exactly one digit appear to the left of the decimal point when the number is printed in scientific notation. Then they take this exponent and apply the function specified by ExponentFunction to it. If the value obtained from this function is an integer, it is used as the exponent of the number. If it is Null, then the number is printed without scientific notation.
  • The argument provided for the function specified by ExponentFunction is always an integer.
  • In NumberForm, the default setting for ExponentFunction never modifies the exponent, but returns Null for machine numbers with exponents between -5 and 5, and for high-precision numbers where insignificant zeros would have to be inserted if the number were not printed in scientific notation.
Compute approximate powers of :
Default formatting to 5 digits:
Restrict exponents to multiples of 3:
Compute approximate powers of :
In[1]:=
Click for copyable input
Out[1]=
Default formatting to 5 digits:
In[2]:=
Click for copyable input
Out[2]//NumberForm=
Restrict exponents to multiples of 3:
In[3]:=
Click for copyable input
Out[3]//NumberForm=
Include exponents only for powers with absolute value greater than 10:
Format numbers without using scientific notation:
New in 2