Convert between standard and scientific notation

Write a finite decimal in exponent form or expand an exponent into ordinary decimal form.

freeworks offlinenothing uploaded
ToolScientific Notation
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Exponent output normalizes a finite decimal into one non-zero leading digit and an exponent. Standard output shifts the decimal point according to the parsed exponent, while the selected precision controls display rounding.

  • Automatic mode chooses exponent form for very large or very small magnitudes.
  • Six significant decimal places is a display default, not arbitrary-precision arithmetic.

Worked example

Convert between standard and scientific notation
Convert Avogadro's number to scientific notation
Input
											602214076000000000000000
										
Output
												6.02214e+23
											

When to use this

Engineering notes write 0.00000042 as 4.2e-7, JSON logs inspect exponent notation, and laboratory spreadsheets display measurements spanning orders of magnitude.

Edge cases

  • A value such as 1e309 becomes non-finite and is rejected rather than displayed as a valid number.
  • Leading and trailing whitespace is trimmed before parsing.
  • Binary floating-point representation can make a decimal with many digits round at the selected precision.

References