DOCUMENTATION CENTER SEARCH
Mathematica
>
Built-in
Mathematica
Symbol
Output Formats for Numbers
Tutorials »
|
ExponentFunction
NumberForm
See Also »
NumberFormat
NumberFormat
is an option for
NumberForm
and related functions which specifies how the mantissa, base and exponent should be assembled into a final print form.
MORE INFORMATION
With the setting
NumberFormat->
f
, the function
f
is supplied with three arguments: the mantissa, base and exponent of each number to be printed.
»
The arguments are all given as strings.
»
When no exponent is to be printed, the third argument is given as
""
.
»
The function
f
must return the final format for the number.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Display numbers in a Fortran-like form:
In[1]:=
Out[1]=
In[2]:=
Out[2]//NumberForm=
Display only the mantissas:
In[3]:=
Out[3]//NumberForm=
Display the exponents after converting to scientific form:
In[4]:=
Out[4]//NumberForm=
SEE ALSO
ExponentFunction
NumberForm
TUTORIALS
Output Formats for Numbers
New in 2
© 2008 Wolfram Research, Inc.