+ 4
Can anyone review this question???
What is the output of this code print(2e-3) The answer is 0.002 Please explain this.
6 Réponses
+ 1
2*(10^-3)= 0.002
+ 9
It means 2*10^-3 => which is 2/1000 => 0.002.
+ 3
ANJ 2e-3 means 0.002 because this is base 10 exponential function .
This command is taken by interpreter as 2*(10^-3)
+ 2
(2e-3) is the scientific represent of number (2*10^-3) which is equal to 0.002
0
e, in this question is mathematically defined as the base-10 exponential function, given as:
f ( x ) = 10 ^x
Therefore 2e-3 = 2 * (10^-3); interpreted as 2 multiplied by (10 raised to the power of minus 3).
However, note that there is also a function, e, known as the exponential function approximated as 2.7183.
All the best.
0
qws