0

print(10e-3)

can anyone explain how this script?

3rd Jan 2023, 5:46 AM
Lidwina Harefa
Lidwina Harefa - avatar
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
3rd Jan 2023, 6:19 AM
Ipang
+ 2
Lidwina Harefa 10e-3 means 10×10⁻³ = 10⁻ÂČ = 1/10ÂČ = 1/100 = 0.01
3rd Jan 2023, 9:12 AM
FꫀâČ…áƒ«á„†ÍŸá„™á„‰áŻœ
FꫀâČ…áƒ«á„†ÍŸá„™á„‰áŻœ - avatar