Python - Scientific Notation

Card Puncher Data Processing

Python - Scientific Notation

About

Python uses a traditional programming notation for scientific fic notation.

The notation:

  • <m>6.022e23</m>

    denotes the value

    <m>6.02*10^23</m>

    ,

  • <m>6.626e-34</m>

    denotes the value

    <m>6.626*�10^-34</m>

    .

Since Python uses limited-precision arithmetic, there are round-o ff errors:

>>> 1e16 + 1
1e16







Share this page:
Follow us:
Task Runner