+ 4

Can anyone review this question???

What is the output of this code print(2e-3) The answer is 0.002 Please explain this.

1st May 2019, 5:45 PM
Avishka Nishara Jayakody
6 Réponses
+ 1
2*(10^-3)= 0.002
17th Apr 2020, 11:15 AM
KRA
KRA - avatar
+ 9
It means 2*10^-3 => which is 2/1000 => 0.002.
1st May 2019, 5:49 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 3
ANJ 2e-3 means 0.002 because this is base 10 exponential function . This command is taken by interpreter as 2*(10^-3)
2nd May 2019, 4:35 PM
RISHABH MISHRA
RISHABH MISHRA - avatar
+ 2
(2e-3) is the scientific represent of number (2*10^-3) which is equal to 0.002
1st May 2019, 8:09 PM
Abdol Hashimi
Abdol Hashimi - avatar
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.
1st May 2019, 8:48 PM
Oluwatosin
Oluwatosin - avatar
0
qws
23rd Aug 2020, 8:04 PM
Da Nj
Da Nj - avatar