0
print(10e-3)
can anyone explain how this script?
2 Answers
+ 2
print( 1e-3, 1 / 10 ** 3 )
The letter 'e' in 1e-3 represents exponent. If the number following the 'e' was positive, multiplication takes place. On the contrary, if the number following the 'e' was negative, division takes place instead.
1e3 equals to
1 * 10 ** 3
1 * 1000
=> 1000
1e-3 equals to
1 / 10 ** 3
1 / 1000
=> 0.001
+ A bit about exponent
https://www.mathsisfun.com/algebra/negative-exponents.html
+ 2
Lidwina Harefa
10e-3 means 10Ă10â»Âł
= 10â»ÂČ = 1/10ÂČ = 1/100 = 0.01