views:

42

answers:

4

I've got a graphical program that's exporting a data file with numbers such as: -1.33227e-015 and -4.02456e-016.

I've long been perplexed by the "e-" notation. Is it used to denote an invalid number? What sort of valid value can I extract from the above numbers? What are they trying to say?

+6  A: 
KennyTM
+4  A: 

No. It signifies exponential/scientific notation. -4.02456e-016 means -4.02456 divided by 10 to the power 16.

Sinan Ünür
+3  A: 

e or E stands for exponent. Just like x10^ (in written mathematics). The number following tells you how far the decimal place is moving, (+ for left, - for right) so your above number:

-1.33227e-015

Becomes:

-.00000000000000133227

While:

-4.02456e-016

Becomes:

-.000000000000000402456

Rudu
A: 

That is scientific notation being used to represent extremely "large" or "small" numbers.

jsumners