# ScientificForm

ScientificForm[expr]

prints with all real numbers in expr given in scientific notation.

ScientificForm[expr,n]

prints with numbers given to ndigit precision.

# Details and Options • The following options can be given:
•  DigitBlock Infinity number of digits between breaks ExponentFunction Automatic function to apply to exponents ExponentStep 1 steps by which exponents can increase NumberFormat Automatic function used to assemble mantissa, base, and exponent NumberMultiplier "×" string to use to indicate multiplication NumberPadding {"",""} strings to use for left and right padding NumberPoint "." decimal point string NumberSeparator {",", " "} string to insert at breaks between blocks NumberSigns {"-",""} strings to use for signs of negative and positive numbers SignPadding False whether to insert padding after the sign
• You can mix ScientificForm and BaseForm.
• The typeset form of ScientificForm[expr] is interpreted the same as expr when used in input. »
• When an input evaluates to ScientificForm[expr], ScientificForm does not appear in the output. »

# Examples

open allclose all

## Basic Examples(2)

Three numbers in scientific form:

The same numbers to 3 precise digits:

## Scope(5)

The default display for a machine number:

Display more digits than the default:

Display fewer digits:

Format a complex number:

Format a high-precision number:

Use fewer digits:

Change the display of numbers in a vector:

A matrix:

Change the display of inexact numbers in a mixed expression:

Use 4 precise digits:

## Options(11)

### DigitBlock(2)

A default integer:

Digits separated in blocks of length 3:

Use fivedigit blocks with spaces as separators:

### ExponentFunction(1)

Compute approximate powers of :

Restrict exponents to multiples of 3:

Include exponents only for powers greater than 10:

### ExponentStep(1)

Default formatting to 10 digits:

Restrict exponent to multiples of 6:

### NumberFormat(1)

Display numbers in a Fortranlike form:

Display only the mantissas:

Display only the exponents:

### NumberMultiplier(1)

Use the default multiplier ×:

The default does not pad on the left or right:

Pad with spaces on the left:

### NumberPoint(1)

The default is a period:

Display with a comma (,) instead:

### NumberSeparator(1)

The default separator is a comma (,):

### NumberSigns(1)

The default includes negative signs but not positive signs:

Include positive signs as well:

## Properties & Relations(5)

ScientificForm has a single digit to the left of the decimal by default:

NumberForm and PaddedForm include exponents higher than 5 by default:

EngineeringForm uses exponents that are multiples of 3:

AccountingForm does not have exponents:

Convert a number to base 2:

Represent the number in base 2:

Reconstruct the base 10 number:

Affect the display of numbers in MatrixForm or TableForm:

The typeset form of ScientificForm[expr] is interpreted the same as expr when used in input:

Copy the output and paste it into an input cell. The 1.23×102 is interpreted as 123.:

When an input evaluates to ScientificForm[expr], ScientificForm does not appear in the output:

Out is assigned the value 123., not ScientificForm[123.]:

## Possible Issues(2)

Placeholder zeros may be needed if the requested precision is small: Even when an output omits ScientificForm from the top level, it is not stripped from subexpressions:

The output does not have ScientificForm in it:

However, the variable e does have ScientificForm in it, which may affect subsequent evaluations:

The product is not evaluated due to the intervening ScientificForm:

Assign variables first and then apply ScientificForm to the result to maintain computability: