Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "e" in "1e-5" in Python language mean and what is the name of this notation? [duplicate]

Tags:

python

I notice that there is such an expression "1e-5" in Python(probably in other languages also)

  1. What is the name of this notation?

  2. what does it denote in math?

  3. What does 'e' mean? It's the first time I see a character helps to denote some value, are there other characters also help do so?

  4. Why should use this way instead of some other python math operation like pow() etc.

like image 889
Code Farmer Avatar asked Nov 02 '16 21:11

Code Farmer


People also ask

What does 1e 5 mean?

1e5 is a number expressed using scientific notation and it means 1 multiplied by 10 to the 5th power (the e meaning 'exponent') so 1e5 equals 1*100000 and is equal to 100000 , the three notations are interchangeable meaning the same. Follow this answer to receive notifications.

What does E+ mean in Python?

It's know as E notation, which is plain text representation of scientific notation. 1.234e+56 means 1.234 * 10**56 or in more human readable form 1.234 × 1056. Follow this answer to receive notifications. answered Feb 28, 2013 at 15:00. vartec.

What is e notation in Python?

E-notation is just another way of writing scientific notation. For very small numbers, like 0.0000000000001752, a negative exponent is used. The scientific notation would be 1.752 x 10-13, and the E-notation would be 1.752e-13. A negative exponent means to move the decimal place to the left instead of the right.

What does 1e 3 mean in Python?

To specify a floating point number, either include a decimal point somewhere in the number, or use exponential notation, for example 1e3 or 1E3 to represent 1000 (1 times 10 to the third power).


1 Answers

It is scientific notation. It means 1 × 10−5. In other words, 0.00001.

like image 183
Nayuki Avatar answered Oct 13 '22 23:10

Nayuki