Hey all I asked this over at StackOverflow =) and I got a good answer but I still have no idea whats going on. I want to know how the expression got to the answer and maybe the math behind how it was reasoned.. the steps if you would be so kind. The likelyhood is I don't understand the equation.
I'm not a big maths person please be gentle :p
For all those playing along at home I'm reading Absolute Java 5th Edition by Walter Savitch (Chapter 2 Page 66).
double d = 12345.123456789; System.out.printf("START%12.5e END %n", d);
I understand the basic principles of this printf method's arguments for example I know the '%' represents the start of the parameters. '12' is the number of spacing, '.5' is the times the decimal point will move.... I see the decimal point has moved 4 places towards the left... can someone explain the principles of e-notation. Also how this expression came to this answer =).
As far as e-notation go's its meant to be scientific notation;
So like 5.89e-4 would mean 0.000589 (move the decimal place if minus left if not move the decimal place right).