PUBLIC.INTERNET

Sci-Notation Swift - Decimal to Scientific Converter

Sci-Notation Swift converts between decimal numbers and scientific notation, from Avogadro's number (6.02214076 × 10²³) to the Planck constant (6.62607015 × 10⁻³⁴). Type a decimal to get it in the form a × 10^n with one nonzero digit before the point, or enter a coefficient and an exponent to see the number written out in full. The conversion works on the digits themselves, not on floating-point values, so every digit you type is kept and numbers far beyond a pocket calculator's range still convert exactly. The result is also shown in E notation, and each form has its own copy button.

Every digit is kept. In scientific notation the exponent can be from -1000 to 1000.

Try:

Power of 10 Reference

Name Power Decimal
Trillion10¹²1,000,000,000,000
Billion10⁹1,000,000,000
Million10⁶1,000,000
Thousand10³1,000
One10⁰1
Thousandth10⁻³0.001
Millionth10⁻⁶0.000001
Billionth10⁻⁹0.000000001
Trillionth10⁻¹²0.000000000001

How to Convert Scientific Notation

  1. Choose the direction with the two buttons at the top: Decimal → Scientific or Scientific → Decimal.
  2. For decimal to scientific: type your number, such as 123000000 or 0.0000456, under Enter Decimal Number. Thousands commas and E notation such as 1.2e-3 are accepted.
  3. For scientific to decimal: enter the Coefficient (such as 1.23) and the Exponent (such as 8, a whole number) in their own fields.
  4. Read the result in scientific notation and as a full decimal, with a breakdown of what the power of ten means. The copy buttons copy the scientific form, the E notation or the decimal.

Why Scientific Notation Matters

Scientific notation expresses a number as a coefficient multiplied by a power of 10. In the normalized form a × 10^n the coefficient has exactly one nonzero digit before the decimal point, so it is at least 1 and less than 10. That makes very large and very small numbers easy to read and compare: the speed of light, 299,792,458 m/s, becomes 2.99792458 × 10⁸. This converter always shows the normalized form, so a coefficient of 12 with exponent 3 is shown as 1.2 × 10^4.

The result comes in three forms, each with a copy button: standard notation (1.23 × 10^6), E notation (1.23e6) for programming languages and spreadsheets, and the full decimal. The breakdown spells out what the exponent means: a positive exponent multiplies the coefficient by that power of ten, a negative exponent divides by it. Powers from thousand to trillion, and thousandths to trillionths, are also named. The example buttons load the speed of light, Avogadro's number, the Planck constant, the electron mass and one trillion.

Limits: the conversion is exact, but trailing zeros are not kept, so 1.50 becomes 1.5 × 10^0 and 1200 becomes 1.2 × 10^3. If your zeros are significant figures, add them back to the coefficient by hand. Commas are read only as thousands separators (1,234,567), so a decimal comma such as 3,14 is rejected. The limit is on the exponent of the result: it can be from -1000 to 1000, so 9.999 × 10^1000 converts and 1 × 10^1001 does not. The exponent field takes whole numbers in the same range. Past those limits the page shows a message instead of a result.