...

View Full Version : 2*10e-11 --> 2*10e-10 ?



BubikolRamios
04-26-2008, 05:50 AM
this


alert(2*10e-11);

alerts: 2*10e-10

?

Trinithis
04-26-2008, 06:37 AM
1e2 = 1 * (10 ^ 2)

Basically, the e already includes the 10 in the times part.

In your example,


2*10e-11
= 2 * 10 * (10 ^ -11)
= 2 * (10 ^ (-11 + 1))
= 2 * (10 ^ -10)
= 2e-10

(which is what js alerts)

rangana
04-26-2008, 06:41 AM
Yes...it's correct ;)

...This means that 10 is raised to the power of -11 which is 0.0000000001

The output above is exactly the same as:


alert(2*0.0000000001);

Trinithis types fastly as the chimpanzee :)

Trinithis
04-26-2008, 07:29 AM
The question is . . . do chimpanzee's type fast?

rangana
04-26-2008, 07:41 AM
NOt as fast as you do :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum