Page 1 of 1

What's this javascript number?

Posted: Sat Mar 22, 2008 11:13 pm
by JellyFish
3.5957932520658716e+62

What does this mean? What's e?

Have you ever seen this number pop up in javascript? Usually it pops up when you have to large of a number. But how is it a large number?

Thanks for reading.

Re: What's this javascript number?

Posted: Sun Mar 23, 2008 1:13 am
by John Cartwright
3.5957932520658716e+62

add 62 0's infront of 3.5957932520658716e

Re: What's this javascript number?

Posted: Sun Mar 23, 2008 10:05 am
by onion2k
It's scientific notation ... it means 3.5957932520658716 * 10 raised to the power 62. It's a massive number.

Re: What's this javascript number?

Posted: Sun Mar 23, 2008 11:36 am
by John Cartwright
Could have sworn I posted a link to scientific notation last night :(

Re: What's this javascript number?

Posted: Sun Mar 23, 2008 8:07 pm
by JellyFish
Oh I see. But what is e?

Re: What's this javascript number?

Posted: Tue Mar 25, 2008 11:04 am
by pickle
e is just part of the notation. I believe ~Jcart errantly copied it.

Re: What's this javascript number?

Posted: Tue Mar 25, 2008 1:16 pm
by John Cartwright
Appologies, onion was correct that it was a mistake copying the e

Re: What's this javascript number?

Posted: Thu Mar 27, 2008 8:02 pm
by JellyFish
Oh I see. So why "e"?

Why didn't ECMA do something more like: 3.5957932520658716^62 that is, 3.5957932520658716 raised to the power of 62. Or something like that?

Re: What's this javascript number?

Posted: Thu Mar 27, 2008 9:15 pm
by califdon
e stands for exponent, I believe.