-6

Trying to perform that calculation but it fails. Is that a bug? Python 3.10.5

enter image description here

ghostcasper
  • 99
  • 2
  • 7

1 Answers1

-2

It is not a bug! Your code works perfectly fine.

... switches to scientific notation when the values are very large or very small. For example:

  • 2.3e^-5, means 2.3 times ten to the minus five power, or 0.000023
  • 4.5e^6 means 4.5 times ten to the sixth power, or 4500000 which is the same as 4,500,000

Source

DialFrost
  • 1,610
  • 1
  • 8
  • 28