Variable Logic of '123e5' in JavaScript Posted May 25, 2020 var z=123e-5' produces 0.00123I take "e" as "10*" so 123e5 will be taken as 123 x 10*5 = 12300000 similary "e-" will be taken as "/10" so 123e-5 becomes 123x 1/20*5 = 123/100000 = 0.00123
Variable Logic of '123e5'
in JavaScript
Posted
var z=123e-5' produces 0.00123I
take "e" as "10*"
so 123e5 will be taken as 123 x 10*5 = 12300000
similary "e-" will be taken as "/10"
so 123e-5 becomes 123x 1/20*5 = 123/100000 = 0.00123